-
Notifications
You must be signed in to change notification settings - Fork 212
Going back from source requires three clicks #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can't replicate with firefox, what browser are you using? https://a.pomf.cat/ohdprb.mkv |
I'm using chromium. I believe the cause is this part of the site which changes the location object: var doc_body = document.getElementById("rustdoc_body_wrapper");
if(window.location.hash) {
var notFirefox = typeof InstallTrigger === 'undefined';
if(notFirefox) {
var hash = window.location.hash;
window.location.hash = ""; <-------------
setTimeout(function () {
window.location.hash = hash; <-------------
doc_body.focus();
}, 1);
}
} else {
doc_body.focus();
} According to the spec, under some arcane conditions, changing the hash causes a new history entry to be created (in the spec language: the previous entry to not be replaced): https://html.spec.whatwg.org/multipage/history.html#location-object-setter-navigate |
cc @GuillaumeGomez , @Nemo157 , this looks related to #750 |
Would a possible workaround be to remove the messing around with |
I'm not even sure why it has been done like this in the first place... |
I couldn't figure out what the |
Then maybe let's remove this code and see if anyone complains? And if someone complains, add a comment this time. XD |
Relevant code: Line 19 in 9164b48
|
See https://a.pomf.cat/qyfvmb.webm
The text was updated successfully, but these errors were encountered: