Hi everyone,
I use Vaadin 14.
After Navigation from one route to another: How can I receive the name of the “source” route (the route where I was navigating from)?
Is there no other way than give the name as an additional query parameter to the method beforeEnterEvent.rerouteTo(…) of the “source” route?
Thanks for help
Perhaps you can store the name of the last route using ComponentUtil.setData() and ComponentUtil.getData(), which lets you store data that are UI-scoped (i.e. browser-tab scoped).
ComponentUtil.setData()
ComponentUtil.getData()
See: https://vaadin.com/forum/thread/17555736/17556515