Skip to content

Node.js based forum software built for the modern web

closes #4289

barisusaklic6c1e2e217e7
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 8450f1c2ab..b72447a980 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -103,7 +103,7 @@ $(document).ready(function() {
app.previousUrl = window.location.href;
}
- ajaxify.currentPage = url;
+ ajaxify.currentPage = url.split(/[?#]/)[0];
if (window.history && window.history.pushState) {
window.history[!quiet ? 'pushState' : 'replaceState']({
@@ -202,7 +202,7 @@ $(document).ready(function() {
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) {