Browse Source

Fix redirects from /web/ discarding everything after a dot (#20148)

Fixes #20145
closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
dd7176a4b5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/routes.rb

+ 1
- 1
config/routes.rb View File

@ -683,7 +683,7 @@ Rails.application.routes.draw do
get path, to: 'home#index' get path, to: 'home#index'
end end
get '/web/(*any)', to: redirect('/%{any}', status: 302), as: :web, defaults: { any: '' }
get '/web/(*any)', to: redirect('/%{any}', status: 302), as: :web, defaults: { any: '' }, format: false
get '/about', to: 'about#show' get '/about', to: 'about#show'
get '/about/more', to: redirect('/about') get '/about/more', to: redirect('/about')

Loading…
Cancel
Save