Re: Build url programmatically and redirect from ajax action

Splash Forums PrettyFaces Users Build url programmatically and redirect from ajax action Re: Build url programmatically and redirect from ajax action

#23467

You could simply return the following string from the action method invoked by the AJAX request:

/WEB-INF/index.xhtml?parameter=test&faces-redirect=true

PrettyFaces will intercept that and rewrite the URL to the pretty one. :)