I am creating a lightning app in which I have different sidebar menus, which should take the user to different page inside the same app. I have done this by dividing the parent component in two part
1st which has the sidebar and emits the event when someone clicks any menu item 2nd which has the main body content which changes the component when any menu item is selected
the main issue with this approach is that this will not support any browser back functionality, and as the URL state is not changing. I also found navigateToURL which could help to change the url, and aura:locationChange which could help to capture changes. Suggest me if this approach is correct and what are the other solution for implementing navigation in the lightning app with supporting functionality browser back and getting query param.Thanks..