Skip to content

Commit

Permalink
[bugfix,routing][xs]: ensure /user/ redirects to /user rather than di…
Browse files Browse the repository at this point in the history
…splaying current user's home page.
  • Loading branch information
rufuspollock committed Jan 27, 2012
1 parent e2ea171 commit 7602134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/config/routing.py
Expand Up @@ -276,6 +276,7 @@ def make_map():
map.connect('/tag/{id}', controller='tag', action='read')
# users
map.redirect("/users/{url:.*}", "/user/{url}")
map.redirect("/user/", "/user")
map.connect('/user/edit', controller='user', action='edit')
# Note: openid users have slashes in their ids, so need the wildcard
# in the route.
Expand Down

0 comments on commit 7602134

Please sign in to comment.