[Seaside] Re: addSyle: inside updateRoot not being able to set URL
stormbyte at gmail.com
Fri Jul 17 10:05:32 UTC 2015
El Fri, 17 Jul 2015 10:59:16 +0200
Philippe Marschall <philippe.marschall at gmail.com> escribió:
> On Thu, Jul 16, 2015 at 6:28 PM, David <stormbyte at gmail.com> wrote:
> > Hi all,
> > I implemented updateUrl, updateRoot and initialRequest so I can take
> > care of the URLs in my project. Specifically, as I am working with
> > rewrites, I hide my "app name" configured in seaside.
> > As an example, a "normal" link would be:
> > mydomain.com/my_app_name/?_s=XX&_k=YY. By implementing updateRoot,
> > initialRequest, updateUrl and rewrites in nginx's config, I am
> > successful in completelly remove my_app_name from all links in all
> > the site except one place.
> The following approaches would probably be simpler
> - set the #requestHandler: on your server adaptor to you application
> instead of the default dispatcher
> - set #defaultName: on the default dispatcher to 'my_app_name'
> This way you don't have to implement #updateRoot #initialRequest and
Thanks for your response. The implementation of the initialRequest +
updateUrl and updateRoot is not only for that, it is also to maintain a
SEO friendly links across pages.
More information about the seaside