Skip to content

Node.js based forum software built for the modern web

remove returnPath from replaceState

Barış Soner Uşaklı26a1888abc7c
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 679273da14..c09c95135a 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -551,7 +551,7 @@ $(document).ready(function () {
if (ev.state.url === null && returnPath !== undefined) {
window.history.replaceState({
url: returnPath,
- }, '', returnPath);
+ }, '');
} else if (ev.state.url !== undefined) {
ajaxify.handleTransientElements();
ajaxify.go(ev.state.url, function () {