3 ms·
I wonder why they don't use `location.replace` [1]. It isn't exactly new. Edit: ah, I see, it doesn't work for changing domains. Still, they could use e.g. bbc
by bovine3dom 6y ago
I wonder why they don't use `location.replace` [1]. It isn't exactly new.
Edit: ah, I see, it doesn't work for changing domains. Still, they could use e.g. bbc.co.uk/[country-code]/ as many other sites do.
[1]: https://developer.mozilla.org/en-US/docs/Web/API/Location/replace https://developer.mozilla.org/en-US/docs/Web/API/Location/re...
- GoblinSlayer 6y agoRedirection is often erroneous, then destroying the history exacerbates the error. Data destruction is an antifeature, really.
- bovine3dom 6y agoI see where you're coming from, but having to press back twice quickly to get back to the page I actually came from is very annoying. It's essentially impossible on mobile. Perhaps browsers should disable redirection on pages that have been reached via the back button? That could add a lot of complexity.
- roryokane 6y agoIn Firefox for Android, I can press and hold on the Back button in the '…' menu (not Android's Back button) to show the current Rab's history as a list. By touching an old history entry, I can navigate directly to it, skipping any redirects.