mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
closes #4289
This commit is contained in:
@@ -103,7 +103,7 @@ $(document).ready(function() {
|
|||||||
app.previousUrl = window.location.href;
|
app.previousUrl = window.location.href;
|
||||||
}
|
}
|
||||||
|
|
||||||
ajaxify.currentPage = url;
|
ajaxify.currentPage = url.split(/[?#]/)[0];
|
||||||
|
|
||||||
if (window.history && window.history.pushState) {
|
if (window.history && window.history.pushState) {
|
||||||
window.history[!quiet ? 'pushState' : 'replaceState']({
|
window.history[!quiet ? 'pushState' : 'replaceState']({
|
||||||
@@ -202,7 +202,7 @@ $(document).ready(function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
ajaxify.go(ajaxify.currentPage, callback, true);
|
ajaxify.go(ajaxify.currentPage + window.location.search + window.location.hash, callback, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
ajaxify.loadScript = function(tpl_url, callback) {
|
ajaxify.loadScript = function(tpl_url, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user