From 2d9bc7eee7a7aff91e9b647efe4f96845a09c8a0 Mon Sep 17 00:00:00 2001 From: frissdiegurke Date: Tue, 1 Jul 2014 22:45:00 +0200 Subject: [PATCH] fixed no href-attribute handled as external link --- 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 5c82a9852a..2d290e7ac5 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -253,7 +253,7 @@ var ajaxify = ajaxify || {}; } function hrefEmpty(href) { - return href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#"; + return href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#"; } // Enhancing all anchors to ajaxify...