Node.js based forum software built for the modern web
fixing issue where cold loads were calling client-side event action:ajaxify.end with the wrong "url"
Julian Lam1487545fd25c
diff --git a/public/src/app.js b/public/src/app.jsindex eec2bed3d7..34a5daf97e 100644--- a/public/src/app.js+++ b/public/src/app.js@@ -651,6 +651,12 @@ var socket,var url = window.location.pathname.slice(1),tpl_url = ajaxify.getTemplateMapping(url);+ url = url.replace(/\/$/, "");++ if (url.indexOf(RELATIVE_PATH.slice(1)) !== -1) {+ url = url.slice(RELATIVE_PATH.length);+ }+$(window).trigger('action:ajaxify.start', {url: url});