Replace some legacy routes with redirects
This commit is contained in:
parent
ba4a3e3ce9
commit
e418075e26
4 changed files with 17 additions and 15 deletions
|
@ -162,9 +162,9 @@ OpenStreetMap::Application.routes.draw do
|
|||
match '/user/forgot-password' => 'user#lost_password', :via => [:get, :post]
|
||||
match '/user/suspended' => 'user#suspended', :via => :get
|
||||
|
||||
match '/index.html' => 'site#index', :via => :get
|
||||
match '/create-account.html' => 'user#new', :via => :get
|
||||
match '/forgot-password.html' => 'user#lost_password', :via => :get
|
||||
get '/index.html', :to => redirect(:path => "/")
|
||||
get '/create-account.html', :to => redirect(:path => "/user/new")
|
||||
get '/forgot-password.html', :to => redirect(:path => "/user/forgot-password")
|
||||
|
||||
# permalink
|
||||
match '/go/:code' => 'site#permalink', :via => :get, :code => /[a-zA-Z0-9_@~]+[=-]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue