-
Notifications
You must be signed in to change notification settings - Fork 129
Use pushState instead of replaceState when changing tabs in a PR (aka "please don't break the back button") #3
Comments
I think they used replaceState on purpose, so the lots of tab changes don't stack up in the history. It took me a while to get used to that, but I find it very unlikely that they would change that behaviour, considering the drawback. |
What's the drawback? Accessibility? |
I think the idea is this: You look at a PR and do a lot of switching between the three tabs. With pushState, they would pile up as history entries. To then go back, you'd have to use the back button for each of those. Since the tabs don't look like links, the user might expect the back button to lead them back to the previous page instantly. Both approaches seem valid to me, so its more of a design decision then a bug. |
What usually happens for me is that I click a tab, then then press the Almost the whole page changes. There's no excuse for it not being a history entry. |
👍 |
This bites me every damn day. |
Ditto. EVERY day. I would have thought something pavlovian would have clicked by now in my brain... |
Show me someone who thinks it's better the way that it is, and I'll show you someone who doesn't use github issues. |
👍 |
1 similar comment
+1 |
👍 This bites me all the time. |
This! Drives me nuts too. |
💯 👍 |
@marcomorain Please note this project is not an official channel for Github issues. If you agree with this issue, read and follow the instructions in the project README: send a message to Github Support, and report back in comments on this issue with a relevant excerpt of your message and Github's response. Edit: Just realized I never posted my interaction with Github. Sent to Github support:
Response:
|
I believe this is resolved. Can others verify? |
I can confirm that clicking back on the commits page does take you back one page rather than 2. |
I don't think this issue applies anymore. I go back to the conversation tab when I click back. |
There is however another issue similar to this one that hasn't been fixed: #1464 |
Reproduce:
Expect: Return to the "Discussion" tab.
Actual: Returns to the https://github.com/joyent/node/pulls page
The text was updated successfully, but these errors were encountered: