Skip to content

Commit

Permalink
fixes adding new routes to user/xxx/route
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Jan 9, 2015
1 parent a8de1c1 commit a7d73d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/src/ajaxify.js
Expand Up @@ -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]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/config.json
Expand Up @@ -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",
Expand Down

0 comments on commit a7d73d4

Please sign in to comment.