Keep the hash of the url in the setQueryString method.

Resolve #3234
pull/3306/head
maliming 6 years ago
parent a2594bb965
commit aaaed04637

@ -119,16 +119,17 @@
};
var setQueryString = function () {
clearQueryString();
var uri = window.location.href.toString();
var comboboxes = $(".doc-section-combobox");
if (comboboxes.length < 1) {
return;
}
var hash = document.location.hash;
clearQueryString();
var uri = window.location.href.toString();
var new_uri = uri + "?";
for (var i = 0; i < comboboxes.length; i++) {
@ -142,7 +143,7 @@
}
}
window.history.replaceState({}, document.title, new_uri);
window.history.replaceState({}, document.title, new_uri + hash);
};
var getTenYearsLater = function () {

Loading…
Cancel
Save