fixing issue where cold loads were calling client-side event action:ajaxify.end with the wrong "url"

v1.18.x
Julian Lam 11 years ago
parent 0c744a947e
commit 1487545fd2

@ -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
});

Loading…
Cancel
Save