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...