mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
removed derpy + from header ill come back to that later when im more inspired... fixed ajaxify for custom routed urls, fixed recent/popular/active tab's invalid object initializer
This commit is contained in:
@@ -31,9 +31,12 @@ var ajaxify = {};
|
||||
app.enter_room('global');
|
||||
|
||||
var url = url.replace(/\/$/, "");
|
||||
tpl_url = templates.get_custom_map(tpl_url);
|
||||
var tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
|
||||
|
||||
var tpl_url = templates.get_custom_map(url);
|
||||
|
||||
if (tpl_url == false) {
|
||||
tpl_url = (url === '' || url === '/') ? 'home' : url.split('/')[0];
|
||||
}
|
||||
|
||||
if (templates[tpl_url]) {
|
||||
window.history.pushState({}, url, "/" + url);
|
||||
|
||||
Reference in New Issue
Block a user