Can i somehow change address in address bar to my App Layout route after navigation from child route to it, without re-navigation?
My app layout addres is like: localhost:8080/mainPage class MainPanelLayout
Child route: localhost:8080/mainPage/subPage and** @Route(layout = MainPanelLayout.class,value = “subPage”)**
After writing address localhost:8080/mainPage/subPage i want to run code from Child route but after completing code i want change link again to ** localhost:8080/mainPage**.
I can`t use history like:
UI.getCurrent().getPage().executeJs(“history.pushState(history.state,‘’,'” + “mainPage” + “');”);
Couse then my listeners like onDetach in MainPage are stopping working, so after reloading MainPage is executing from beggining without my code from Child class executed before.