From 67d9209b9965154df79d0877f3be8d6e85abc742 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 21 Jul 2015 15:21:50 -0400 Subject: [PATCH] fixed regression of pagination caused by changes to ajaxification logic --- public/src/ajaxify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index f048720e44..4fd4586b6b 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -276,14 +276,14 @@ $(document).ready(function() { (RELATIVE_PATH.length > 0 ? this.pathname.indexOf(RELATIVE_PATH) === 0 : true)) // Subfolder installs need this additional check ) { // Internal link - var url = this.pathname.replace(RELATIVE_PATH + '/', ''); + var pathname = this.href.replace(rootUrl + RELATIVE_PATH + '/', ''); // Special handling for urls with hashes if (window.location.pathname === this.pathname && this.hash.length) { window.location.hash = this.hash; } else { window.location.hash = ''; - if (ajaxify.go(url)) { + if (ajaxify.go(pathname)) { e.preventDefault(); } }