Fix `/web` prefix (#19468)

th-downstream
Yamagishi Kazutoshi 2 years ago committed by GitHub
parent 85fc370638
commit c84b4d4b9c

@ -681,9 +681,9 @@ Rails.application.routes.draw do
get path, to: 'home#index'
end
get '/web/(*any)', to: redirect('/%{any}', status: 302), as: :web
get '/about', to: 'about#show'
get '/about/more', to: redirect('/about')
get '/web/(*any)', to: redirect('/%{any}', status: 302), as: :web, defaults: { any: '' }
get '/about', to: 'about#show'
get '/about/more', to: redirect('/about')
get '/privacy-policy', to: 'privacy#show', as: :privacy_policy
get '/terms', to: redirect('/privacy-policy')

Loading…
Cancel
Save