Skip to content

Node.js based forum software built for the modern web

fixed no href-attribute handled as external link

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