diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 5c82a9852a..d07eff3c97 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -153,7 +153,7 @@ var ajaxify = ajaxify || {}; var tpl_url = ajaxify.getCustomTemplateMapping(url.split('?')[0]); if (tpl_url === false && !templates[url]) { - tpl_url = url.split('/'); + tpl_url = ajaxify.removeRelativePath(url).split('/'); while(tpl_url.length) { if (ajaxify.isTemplateAvailable(tpl_url.join('/'))) {