Skip to content

Node.js based forum software built for the modern web

fixed #3034

Julian Lam1c36fbd57b65
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index ec1c1d03a7..468580fd92 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -255,7 +255,7 @@ $(document).ready(function() {
}
if (!e.ctrlKey && !e.shiftKey && !e.metaKey && e.which === 1) {
- if (this.host === '' || this.host === window.location.host) {
+ if (this.host === '' || (this.host === window.location.host && this.protocol === window.location.protocol)) {
// Internal link
var url = this.href.replace(rootUrl + '/', '');