Re:Letting users skip our paywall if they wrote an apology
by mysterypie on Tuesday October 31, 2017 @05:41AM
(#15591958)
Can someone explain to me why hijacking of the back button is even possible? It's obviously something that browsers could fix, and the fact they don't fix it means that there must be some legitimate uses. But what legit use?
[ Parent
| on HN ]
Re:Letting users skip our paywall if they wrote an apology
by sp332 on Tuesday October 31, 2017 @09:53AM
(#15593211)
In this case I think it doesn't hijack your back button. The first page redirects to a second page, and they both end up in your history. If they used history.replaceState() then you'd only have one entry in your back-stack. https://developer.mozilla.org/en-US/docs/Web/API/History_API
Re:Letting users skip our paywall if they wrote an apology
by reificator on Tuesday October 31, 2017 @07:14AM
(#15592342)
In a perfect world, it would be used by single page apps that are driven by JavaScript to provide the same benefits of linking, history navigation, and so on, without having to actually load a new page.
Think an online webmail client, where each time you view an email it adds a new item to your history.