I have a command button:
<h:commandButton value="button" action="#{bean.button}" />
I need to perform a redirection after the action ends.
What I do is to return a string with the page name.
The outcome is the desired page but the URL is of the previous page.
How can I fix that?