4 ms·
Why do browsers not keep status 302 pages in back-button history?
- chenxiaolong 6y agoI wish there was a way to keep all redirects in the back button history. For me, one of the most infuriating things on my work computer was starting up the browser after a period of inactivity (eg. the weekend) and seeing every Jira/Github/whatever tab sitting at the corporate SSO page. The original page wouldn't be in the back history so I effectively "lost" those tabs. Firefox fortunately keeps most tabs suspended on startup nowadays so it's less of an issue.
- wang_li 6y agoThis is a jira/gitlab problem. They should recognize the page requires authentication, get that auth, then take you back to the page your browser requested.
- chenxiaolong 6y agoOh, they do. It's just that restoring 20 tabs on browser start results in 20 SSO pages and I have to log in each one of them separately to return to the original pages. I can't do something like logging into one and hitting the back button on the rest.
- londons_explore 6y agoI think you can log into one and then click the refresh button on the rest?
- chenxiaolong 6y agoIt'd be awesome if that worked, but unfortunately the SAML implementation my company uses doesn't work that way. A refresh just presents the username/password fields again.
- wil421 6y agoWhen I work in Jira or ServiceNow I never have that issue. I SSO in one tab and then refresh the other ones. Our sso must be different because I don’t see the splash page until the app realizes I need to sign in again.
- Denvercoder9 6y agoBecause when the original URL always gives a 302, that creates a terrible user experience: hitting back would give you the current page again. Browsers can't know whether a 302 is transient or persistent.
- OJFord 6y agoGood point, though that would only be a problem if you let it. If you click-hold the back button in the browser 'chrome' you typically get a list from history. (I'm not actually sure if this behaviour is also present in actual history.) You could skip past ongoing temporary redirects using that feature; it is already necessary when that behaviour is implemented in JavaScript instead of standard HTTP status codes. Also this is about temporary (302 Found) redirects, not permanent.
- hombre_fatal 6y agoVery few people want to have a probabilistic back button where sometimes it works and sometimes you have to hold it down to go “deep back”. We complain about history pollution all the time on HN which is what your proposal would amount to, and it would be very confusing for most people. On mobile, it’s not obvious where you’d stuff power user UI for redirect chain analysis. On desktop, you can keep devtools open or even create a browser extension with the exact UX that you want for this.
- OJFord 6y agoIf the page is temporarily redirecting, that's already being experienced? Also, the status quo is that history is polluted by bad behaviour and (or including) non-HTTP redirects. Excluding HTTP redirects from history does nothing to fix that, just makes it worse really: I don't think misbehaving sites doing things that shouldn't be in history are bothering with 302s.
- user3939382 6y agoThe extended back history is also available in Firefox by right clicking the back button. I’ve also found this feature in iOS Safari and Firefox. For the latter you press and hold back.