Add tests for new redirects and fix a few bugs in the redirects

This commit is contained in:
Tom Hughes 2013-11-28 08:56:52 +00:00
parent 3cd5f45e08
commit fb9b4edcdd
2 changed files with 55 additions and 3 deletions

View file

@ -123,10 +123,10 @@ OpenStreetMap::Application.routes.draw do
get '/browse/node/:id/history', :to => redirect('/node/%{id}/history')
get '/browse/relation/:id', :to => redirect('/relation/%{id}')
get '/browse/relation/:id/history', :to => redirect('/relation/%{id}/history')
get '/browse/changset/:id', :to => redirect('/changeset/%{id}')
get '/browse/changeset/:id', :to => redirect('/changeset/%{id}')
get '/browse/note/:id', :to => redirect('/note/%{id}')
get '/user/:display_name/edits', :to => redirect('/user/:display_name/history')
get '/user/:display_name/edits/feed', :to => redirect('/user/:display_name/history/feed')
get '/user/:display_name/edits', :to => redirect('/user/%{display_name}/history')
get '/user/:display_name/edits/feed', :to => redirect('/user/%{display_name}/history/feed')
get '/browse/friends', :to => redirect('/history/friends')
get '/browse/nearby', :to => redirect('/history/nearby')
get '/browse/changesets/feed', :to => redirect('/history/feed')