Using the browser navigation buttons

Hi there,

I’m trying to use a Wizard (based on the wizard from the add-on directory), in the Bakery App. However: The example Wizard allows navigation using the browsers ‘back’ button. The example Wizard is started directly from a UI class. In my app, I would like the Wizard to be part of a View class. In that case, the browsers ‘back’ button does not work. This is what I did:

  • In the Bakery app, added a view class: WizardBoardView, to which I can navigate from the MainView.
  • The WizardBoardView is basically a Board (lieke the DashBoardView), and one of the boxes on the board is supposed to be my Wizard
  • The Wizard itself is created as Spring Bean, with annotation @Component, @UIScope (so state is persisted when view changes)
  • The Wizards ‘back’ and ‘next’ buttons work fine, but, using the browsers ‘back’ button results in strange behaviour
  • When I navigate to the WizardBoardView, my browser’s url becomes:http://localhost:8080/#!wizard-board
  • After the first step forward in the wizard, the URL changes to e.g.: http://localhost:8080/#setup
  • And after the second one to :http://localhost:8080/#listen
  • Using the Wizards Back and Next is OK
  • Using the browsers ‘back’, results in: java.lang.IllegalArgumentException: Trying to navigate to an unknown state ‘’ …

I read some documents on your site about PopStateListeners, is that a concept I need to use to be able to use the browsers back button from within a View?
The example used for that also starts from a UI, not from a View, so I cannot use it directly I think.

Thanks for any hints,