Browse Source
Merge pull request #3306 from abpframework/maliming/patch-1
Keep the hash of the url in the setQueryString method.
pull/3319/head
Yunus Emre Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
6 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/index.js
|
|
|
@ -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 () { |
|
|
|
|