Navigation with browser button ( back - forward ), keep previous state

Hi all,

We downloaded the v10-full-stack-spring app ( https://vaadin.com/start/v10-full-stack-spring ) to start our development,

I have one question concerning the navigation.

In the app, on the “home page” ( http://localhost:8080/ ), it’s possible to fill some datas on a form to search orders, result list is updated

https://imgur.com/a/7jWLyln

After that, I navigate to users page ( http://localhost:8080/users )

https://imgur.com/a/vdUizQm

If I return to the previous page, using the back button of the browser, I lost the information previously filled in the panel

https://imgur.com/a/hbbVDpv

Is there a way to “return to the previous state” of the component using back and forward button ?

I know it’s browser behavior, but could it be possible to share a “full little sample” of how you would handle it.

There is some informations on this page https://vaadin.com/docs/v10/flow/advanced/tutorial-history-api.html , but I must admit that it remains a little obscure for me :wink:

Kind regards,

After reading these threads, it seems that we have to manage it “manually”

https://github.com/vaadin/flow/issues/3522
https://github.com/vaadin/flow/issues/4171