Re: question about PrettyNavigationHandler, how can I configure and use it properly.

Splash Forums PrettyFaces Users question about PrettyNavigationHandler, how can I configure and use it properly. Re: question about PrettyNavigationHandler, how can I configure and use it properly.

#22776

Ah, OK, I forgot. If you send a redirect directly this way, the URL won’t be rewritten. What you would have to do is call HttpServletRequest.encodeURL() before sending the redirect.

But in this case it may be easier for you to just directly build the desired URL for the redirect, something like:

externalContext.redirect( externalContext.getRequestContextPath() + "/userRequestDetail/" + getSelectedUserRequest().getId() );