Skip to content
Snippets Groups Projects
Unverified Commit dd7176a4 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

Fixes #20145
parent 6ba52306
No related branches found
No related tags found
No related merge requests found
......@@ -683,7 +683,7 @@ Rails.application.routes.draw do
get path, to: 'home#index'
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/more', to: redirect('/about')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment