mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
added template mapping, did users->account
This commit is contained in:
@@ -30,6 +30,7 @@ var ajaxify = {};
|
||||
|
||||
var url = url.replace(/\/$/, "");
|
||||
var tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
|
||||
tpl_url = templates.get_custom_map(tpl_url);
|
||||
|
||||
if (templates[tpl_url]) {
|
||||
window.history.pushState({}, url, "/" + url);
|
||||
|
||||
Reference in New Issue
Block a user