From 45bc387749bd0a01eadf6f3a2a252ee4dc62a50b Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 1 Mar 2016 18:51:41 -0500 Subject: [PATCH] Revert "fixes #4289" This reverts commit c2b428cc9533db75083f1c83a619cb478b756cd4. --- public/src/ajaxify.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 6b527658b3..c6b9418693 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -96,9 +96,7 @@ $(document).ready(function() { app.previousUrl = window.location.href; } - var location = document.createElement('a'); - location.href = url; - ajaxify.currentPage = location.pathname; + ajaxify.currentPage = url; if (window.history && window.history.pushState) { window.history[!quiet ? 'pushState' : 'replaceState']({