[Seaside] addSyle: inside updateRoot not being able to set URL

Philippe Marschall philippe.marschall at gmail.com
Fri Jul 17 08:59:16 UTC 2015


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 #updateUrl

Cheers
Philippe


More information about the seaside mailing list