News for hackers. Stuff that matters.
Re:A new spam policy for "back button hijacking" by miki123211 on Tuesday April 14, 2026 @03:29AM (#47762424)
The problem is, there are two conceptions of the back button, and the browser only implements one.

One conception is "take me back to the previous screen I was on", one is "take me one level up the hierarchy." They're often but not always the same.

Mac Finder is a perfect example of a program correctly implementing the two. If you're deep in some folder and then press cmd+win+l to go to ~/Downloads, cmd+up will get you to ~/, but cmd+[ will get you back to where you were before, even if this was deep in some network drive, nowhere near ~.

I feel like mobile OSes lean towards "one level up" as the default behavior, while traditional desktop OSes lean more towards tracking your exact path and letting you go back.

Re:A new spam policy for "back button hijacking" by Arainach on Tuesday April 14, 2026 @03:36AM (#47762484)
> The problem is, there are two conceptions of the back button, and the browser only implements one.

In web browsers, there is only one concept.

There is no concept of "up one level in the heirarchy". If you want that make your own button in your website.

Re:A new spam policy for "back button hijacking" by blooalien on Tuesday April 14, 2026 @05:24AM (#47763234)
> There is no concept of "up one level in the heirarchy". If you want that make your own button in your website.

https://lifehacker.com/how-to-move-up-one-url-level-in-chrom... *shrug*

Re:A new spam policy for "back button hijacking" by hrimfaxi on Tuesday April 14, 2026 @08:40AM (#47764894)
> Chrome/Firefox: Ever been reading a site and wish not to go back to the last page you visited, but the last page in that web site's hierarchy?

This statement makes no sense to non-tech people. Most people don't think of sites hierarchically, at least not from a url path perspective.

Re:A new spam policy for "back button hijacking" by sznio on Tuesday April 14, 2026 @09:16AM (#47765259)
amazing, took me 5 clicks of the back button to finally get back from that link
Re:A new spam policy for "back button hijacking" by christoph on Tuesday April 14, 2026 @09:55AM (#47765717)
Isn't the problem already solved at the browser level? Most (all?) modern browsers support a press/click & hold of the back button to view the back history and quickly jump to any page in that tab's history.

*Edit - I left this in the wrong place, those extensions behave slightly differently.

Re:A new spam policy for "back button hijacking" by Arainach on Tuesday April 14, 2026 @11:31AM (#47766973)
Those are third party extensions, not browser features, and they're not consistently applied.

Going from an image to a root domain is not a hierarchy and as a pathological data hoarder who has downloaded a lot of images from a lot of sites I don't understand why I'd ever want that feature. It's wild that that's their first example use case on the article.

Similarly, going from page N of results to page 1 isn't "up a level in heirarchy".

Re:A new spam policy for "back button hijacking" by Baljhin on Wednesday April 15, 2026 @11:16PM (#47788260)
Agreed. I remember addons from the XUL Firefox era that did this.

I miss that feature. And that era.

Re:A new spam policy for "back button hijacking" by thn-gap on Tuesday April 14, 2026 @03:40AM (#47762510)
> one is "take me one level up the hierarchy." They're often but not always the same.

Who expects this behavior? It doesn't make sense. You just want to go back where you were. Most file browsers I've used wanting to implement going up a level in hierarchy, have an arrow pointing up.

Re:A new spam policy for "back button hijacking" by bfivyvysj on Tuesday April 14, 2026 @03:45AM (#47762548)
Nobody
Re:A new spam policy for "back button hijacking" by ButlerianJihad on Tuesday April 14, 2026 @05:21AM (#47763214)
GNU Info and many Web 1.0 navigation schemes involved a hierarchy which did involve "Next", "Previous", "Up", and "Home" type dimensions.

For example, the Bacula documentation is still online, as a prime example of this: https://www.bacula.org/9.6.x-manuals/en/main/Getting_Started...

Re:A new spam policy for "back button hijacking" by TeMPOraL on Tuesday April 14, 2026 @03:39AM (#47762501)
Desktop had this solved, on Windows there was and remains a distinction between "back" (history) and "up" (navigation).

Browsers actually used to have hierarchical navigation support, with buttons and all, back in the age of dinosaurs - all one had to do is to set up some meta tags in HTML head section to tell which URL is "prev"/"next"/"up". Alas, this has proven too difficult for web developers, who eventually even forgot web was meant for documents at all, and at some point browsers just hid/removed those buttons since no one was using them anyway.

The "Back" remains, and as 'Arainach wrote, it's only one concept and it's not, and never has been "up one level in the hierarchy".

EDIT:

The accepted/expected standard way for "take me up one level in hierarchy" on the web is for the page itself to display the hierarchy e.g. as breadcrumbs. The standard way to go to top level of the page is through a clickable logo of the page/brand. Neither of those need, or should, involve changing behavior of browser controls.

Re:A new spam policy for "back button hijacking" by neya on Tuesday April 14, 2026 @04:43AM (#47762940)
If you reached point B from point A - and you tell someone "I would like to go back", then you are expecting to go back to A. Not some intermediate, arbitrarily chosen point C.
Re:A new spam policy for "back button hijacking" by eviks on Tuesday April 14, 2026 @05:47AM (#47763384)
You're describing 2 different concepts, back and up, not 2 backs
Re:A new spam policy for "back button hijacking" by matthewkayin on Tuesday April 14, 2026 @11:36AM (#47767059)
Exactly. It is crazy that they described MacOS finder as doing this correctly when finder has no concept of up, it only has a back.
Re:A new spam policy for "back button hijacking" by mzd348 on Tuesday April 14, 2026 @01:17PM (#47768416)
Command–Up Arrow: Open the folder that contains the current folder. (https://support.apple.com/en-us/102650)