3 ms·
Easy fix: JS doesn't let you change back button behaviour. Q. But what about SPA? A. Draw your own app-level back button top left of page. Another solution:
by dnnddidiej 7mo ago
Easy fix:
JS doesn't let you change back button behaviour.
Q. But what about SPA?
A. Draw your own app-level back button top left of page.
Another solution: make it a permisson.
- Hamuko 7mo ago>Draw your own app-level back button top left of page. This is the worst idea I’ve heard all day.
- dnnddidiej 7mo agoI agree. Because most SPAs don't need a back button. VS Code doesn't have one (undo is not back). Thunderbird doesn't. My MP3 player doesn't.
- kaelwd 7mo agoCan I preventDefault on mouse5? What about the physical back button on Android?
- sublinear 7mo agoWhy not just put up a fake captcha page? When the user clicks the link to continue, the back button is now hijacked.
- layer8 7mo agoYeah, no thanks. I want to use my browser’s standard keyboard shortcut to navigate back. And also forward again. And I want to be able to inspect the history listing before I go back or forward. Let the browser do the browsery things. Don’t make SPAs suck even more than they already do.
- dnnddidiej 7mo agoSo when you use a desktop app there is no back button but there is a switch to another app shortcut. Same idea.
- layer8 7mo agoThere are desktop apps that do provide a navigation history (for example file managers, editors, chat apps), and they generally use the same keyboard and mouse operations as browsers for that. The point is that when an SPA does provide that within a browser, then the user shouldn’t suddenly have to use bespoke UI operations for it.