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

#23468

You could also use ExternalContext.encodeActionURL() to get the pretty URL:

String url = externalContext.encodeActionURL("/WEB-INF/index.xhtml?parameter=test");
assertEquals("/ctx/index/test", url);