From 5a15ee7713bca83c11454dbc57a223e6bac60cdd Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 10 Aug 2015 17:18:28 -0400 Subject: [PATCH] #3424 --- public/src/ajaxify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }