5 ms·
Why should anything be able to change the behaviour of the back button? If I click back it should take me back to the previous URL. If it breaks your one page 2
by SmellyGeekBoy 8y ago
Why should anything be able to change the behaviour of the back button? If I click back it should take me back to the previous URL. If it breaks your one page 200MB JavaScript masterpiece then tough luck, come up with your own navigation.
- brlewis 8y agoSuppose we did what you said, and the back button only ever took you back to the previous URL. I could still make a JS app that, on your first interaction with the page, moved you forward from https://example.com/ https://example.com/ to https://example.com/#home https://example.com/#home. Then it sets a variable such that when you go back to https://example.com/ https://example.com/ it shows a fake SERP. This is not an easy problem to solve.
- user3359 8y agoThis is a redirect, and would be trivial to detect and override at the browser level. Actually, the back button should auto negate redirect pages