News for hackers. Stuff that matters.
Re:Natto.dev – A Canvas for JavaScript by wccrawford on Tuesday April 13, 2021 @08:09AM (#26791099)
Warning people that they won't be able to get back to this site is not an overreaction.
Re:Natto.dev – A Canvas for JavaScript by arethuza on Tuesday April 13, 2021 @09:27AM (#26791842)
It looks like an innocent bug and to get back to HN takes me two clicks rather than one, not really something I can get too excited about, particularly when it showing something new.
Re:Natto.dev – A Canvas for JavaScript by preommr on Tuesday April 13, 2021 @12:36PM (#26794990)
This is not a bug, it's how web apps are supposed to work.

The url should be updated to reference the current app view - this way you can copy the url for that particular resource and access it again by pasting with the same url.

This is how it worked for headers when websites were just plain documents. It's a very powerful feature and is exactly what the web is about - sharing resources easily.

Browsers have different ways of dealing with this like grouping items in the back history by domain, so that it's easy to leave the site back to page previous to the app session.

Re:Natto.dev – A Canvas for JavaScript by mcintyre1994 on Tuesday April 13, 2021 @08:24AM (#26791235)
FWIW: In every desktop browser I've used and in Safari on iOS, long pressing the back button for a few seconds will bring up a list of recent history and allow you to get back when the button is hijacked by a page.
Re:Natto.dev – A Canvas for JavaScript by kingsloi on Tuesday April 13, 2021 @08:42AM (#26791410)
I think I've automatically double-clicked the back button every back-button click since the back button could be hijacked, like years ago. Same with iOS. I try to use my iPhone less, so I uninstalled all apps, and access everything through Safari. It's the absolutely worst experience and I love it. Reddit is practically unusable unless you visit the `www.` site, but by far the worst thing is visiting a site that hijacks the back button.
Re:Natto.dev – A Canvas for JavaScript by tor291674 on Friday April 16, 2021 @10:03AM (#26834006)
Right clicking the back button is faster!
Re:Natto.dev – A Canvas for JavaScript by vanderZwan on Tuesday April 13, 2021 @08:13AM (#26791124)
> they won't be able to get back to this site

I hate it when sites break the back button, but that's really not the same thing

Re:Natto.dev – A Canvas for JavaScript by adamhp on Tuesday April 13, 2021 @08:24AM (#26791239)
I'm picturing users instantaneously teleported to some mythical labyrinth where they're forced to fight their way back to Hacker News.
Re:Natto.dev – A Canvas for JavaScript by FpUser on Tuesday April 13, 2021 @08:43AM (#26791412)
Not to condone but I never rely on back button when using references in context of some longer material I am currently reading. I always right click and open in new window. So to me the problem mostly mute.
Re:Natto.dev – A Canvas for JavaScript by sensanaty on Tuesday April 13, 2021 @01:33PM (#26795940)
Fun fact, middle clicks and ctrl+left click will also open links in a new tab!
Re:Natto.dev – A Canvas for JavaScript by FpUser on Tuesday April 13, 2021 @04:26PM (#26798770)
Aware of that. Ctrl however makes me move my other hand and I am a lazy fart. Middle click requires significant effort on my mouse.
Re:Natto.dev – A Canvas for JavaScript by The_rationalist on Tuesday April 13, 2021 @09:29AM (#26791860)
Not ideal but long clicking on the back button show history.