Skip to content

Node.js based forum software built for the modern web

fixing bug where outgoing links didn't actually let you leave... oops!

Julian Lam49e28f9d1e9a
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 57e94c03dc..1421b494b1 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -117,12 +117,14 @@ var ajaxify = {};
if (!e.ctrlKey && e.which === 1) {
if (this.host === window.location.host) {
+ // Internal link
var url = this.href.replace(rootUrl + '/', '');
if (ajaxify.go(url)) {
e.preventDefault();
}
- } else {
+ } else if (window.location.pathname !== '/outgoing') {
+ // External Link
ajaxify.go('outgoing?url=' + encodeURIComponent(this.href));
e.preventDefault();
}