Vaadin 7 Navigator - Prevent user from pressing Back button to return to pr

Hello,

I am developing a Vaadin 7 application which has a single page, where a user completes a form, and a second page where they are shown confirmation that their form was submitted successfully, and a summary of their information.

Currently, the user can press the back button in the browser, and they are returned to the previously submitted page. How can I prevent the user from being able to do so?

Thanks in advance for the assistance

Add
ViewChangeListener
to your navigator and return
false
from
beforeViewChange(ViewChangeEvent event)
method, when user wants to go to Page1 from Page2.