mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 13:51:49 +02:00
fixes adding new routes to user/xxx/route
This commit is contained in:
@@ -195,7 +195,8 @@ $(document).ready(function() {
|
||||
ajaxify.getCustomTemplateMapping = function(tpl) {
|
||||
if (templatesModule.config && templatesModule.config.custom_mapping && tpl !== undefined) {
|
||||
for (var pattern in templatesModule.config.custom_mapping) {
|
||||
if (tpl.match(pattern)) {
|
||||
var match = tpl.match(pattern);
|
||||
if (match && match[0] === tpl) {
|
||||
return (templatesModule.config.custom_mapping[pattern]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"^user/.*/favourites": "account/favourites",
|
||||
"^user/.*/posts": "account/posts",
|
||||
"^user/.*/topics": "account/topics",
|
||||
"^user/.*": "account/profile",
|
||||
"^user/[.^\/]*": "account/profile",
|
||||
"^reset/.*": "reset_code",
|
||||
"^tags/.*": "tag",
|
||||
"^groups/?$": "groups/list",
|
||||
|
||||
Reference in New Issue
Block a user