From 4fd2973c534ca987cafde7a6d2b6de077a945675 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 2 Aug 2014 16:03:28 -0400 Subject: [PATCH] closes #1938 --- public/src/ajaxify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index f84d5c0611..fb02bd675c 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -257,7 +257,7 @@ var ajaxify = ajaxify || {}; } function hrefEmpty(href) { - return href === undefined || href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#"; + return href === undefined || href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(0, 1) === "#"; } // Enhancing all anchors to ajaxify...