fixing cold load of admin/index

v1.18.x
psychobunny 11 years ago
parent d360320441
commit c26af77a24

@ -133,8 +133,11 @@ var ajaxify = {};
var tpl_url = templates.get_custom_map(url.split('?')[0]);
if (tpl_url == false && !templates[url]) {
// todo: regex
if (url === '' || url === '/') {
tpl_url = 'home';
} else if (url === 'admin' || url === 'admin/') {
tpl_url = 'admin/index';
} else {
tpl_url = url.split('/')[0].split('?')[0];
}

Loading…
Cancel
Save