Reply To: Get context url from pretty-url

Splash Forums Rewrite Users Get view-id from arbitrary pretty-url Reply To: Get context url from pretty-url

#24690

djmj
Participant

The support is free and you have other things to do so I am always thankfull,

but your solution is for the current request, I am asking for a use case with an arbitrary pretty-url.

Following mappings:

/login -> /user/login.xhtml
/main -> /main.xhtml

Url:

Pretty-url in browser bar: /login?from=/main?param1=value1

<o:viewParam name="from" value="#{bean.from}" converter="package.converter.RewriteUrlConverter"/>

I programmatically want to retrieve the view-id including query-params of /main?param1=value1 within the converter.

For the example this results to: /main.xhtml?param1=value1

  • This reply was modified 8 years, 5 months ago by  djmj.