diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 4fd4586b6b..1c143a4c07 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -282,7 +282,9 @@ $(document).ready(function() { if (window.location.pathname === this.pathname && this.hash.length) { window.location.hash = this.hash; } else { - window.location.hash = ''; + if (window.location.hash) { + window.location.hash = ''; + } if (ajaxify.go(pathname)) { e.preventDefault(); }