Reply To: Appending query string in perform redirect

Splash Forums PrettyFaces Users Appending query string in perform redirect Reply To: Appending query string in perform redirect

#25307

That being said, this could be as simple as:

.addRule()
 .when(Path.matches("/account/{*}")))
 .perform(Redirect.temporary(context.getContextPath() + "/login?param=value"));

But if you want to access query parameter values in the redirect, I think this is a case where we probably could make this simpler:

.addRule()
 .when(Query.matches("{*}foo={bar}{*}"))
 .perform(Redirect.temporary(context.getContextPath() + "/login?foo={bar}"));