Re: Rewrite rule to page with an anchor

Splash Forums PrettyFaces Users Rewrite rule to page with an anchor Re: Rewrite rule to page with an anchor

#21467

Hi tjankowski,

I’m not sure this is possible :( it seems that we are always encoding the full URL, so this would have to happen after encoding. We don’t currently support that in a convenient way, sadly.

However, you could do the redirection yourself using the rewrite com.ocpsoft.pretty.faces.rewrite.Processor class, using the HttpServletResponse.sendRedirect(…) method:

http://ocpsoft.com/docs/prettyfaces/3.3.0/en-US/html_single/#inbound_rewriting.options

(the docs are slightly outdated, there are now two methods to implement.

~Lincoln