I am using a RichFaces modal window in a page (call it the first page) to confirm with the user if we should save the changes made on the page or not. The modal window has a simple confirmation message and Yes/No buttons to save/cancel the changes. If the user clicks Yes in the modal window to save their changes, the application saves their changes and redirects the user to another page in the application. The problem is that if the user hits the Back button to go back to the first page, then the modal window again shows up. In this case, I want to show the first page without the modal window when the user does a Back button from the 2nd page to come back to the 1st page.