From c2b428cc9533db75083f1c83a619cb478b756cd4 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 1 Mar 2016 16:48:20 -0500 Subject: [PATCH] fixes #4289 --- 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 c6b9418693..6b527658b3 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -96,7 +96,9 @@ $(document).ready(function() { app.previousUrl = window.location.href; } - ajaxify.currentPage = url; + var location = document.createElement('a'); + location.href = url; + ajaxify.currentPage = location.pathname; if (window.history && window.history.pushState) { window.history[!quiet ? 'pushState' : 'replaceState']({