diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-10-26 23:56:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 16:56:37 +0200 |
commit | 31e23269f9c35667faa655f0b86bd6eed702ccd1 (patch) | |
tree | eb60f3127389c67e20317c82abfa17ad913e67a8 /config | |
parent | 8ebff0efcb91e8b2a0805ebd4583a274ad5f1a69 (diff) |
Fix `/web` prefix (#19468)
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index fd0cbab2b..f24d539ba 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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') |