mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixing cold load of admin/index
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user