Skip to content

Node.js based forum software built for the modern web

fixes #2711 :rage2:

Julian Lam8a581ed1ddce
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index d2af431176..cd87159420 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -275,7 +275,9 @@ $(document).ready(function() {
// Enhancing all anchors to ajaxify...
$(document.body).on('click', 'a', function (e) {
- if (hrefEmpty(this.href) || this.target !== '' || this.protocol === 'javascript:' || $(this).attr('data-ajaxify') === 'false') {
+ if (this.target !== '') {
+ return;
+ } else if (hrefEmpty(this.href) || this.protocol === 'javascript:' || $(this).attr('data-ajaxify') === 'false') {
return e.preventDefault();
}