| ▲ | NoGravitas 6 hours ago | |||||||||||||||||||
There's a place for it within SPAs - you want the browser back button to retrace your path through screens in the application, not exit it, unless you are already on the first page. The same would be true for multi-page apps using HTMX or Turbo or something - if you change pages without doing a full page load, you need to push your new URL. The guiding principle is that the browser back button should work as the user expects - you should only mess with the browser history stack to fix any nonsense you did to it in the first place. | ||||||||||||||||||||
| ▲ | phkahler 6 hours ago | parent [-] | |||||||||||||||||||
>> There's a place for it within SPAs - you want the browser back button to retrace your path through screens in the application, not exit it, unless you are already on the first page. No, You SPA should have it's own back button within the app. My browser back button should get me out of there no matter what. | ||||||||||||||||||||
| ||||||||||||||||||||