Reply To: Page navigation using rewrite

Splash Forums Rewrite Users Page navigation using rewrite Reply To: Page navigation using rewrite

#27132

Your join looks strange. You should not use query parameters in the to() part. Rewrite automatically converts all path parameters to query parameters.

So instead of:

.addRule(Join.path("/page1/{param}").to("/view/page1.jsf?product={param}"))

You should try:

.addRule(Join.path("/page1/{product}").to("/view/page1.jsf"))

Now your navigation should work. But please include the redirect element. That’s required for the URL to change.