From dd7176a4b54a69f4a96648acb71abdff9fd45e3c Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 9 Nov 2022 01:30:33 +0100 Subject: [PATCH] Fix redirects from /web/ discarding everything after a dot (#20148) Fixes #20145 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c133acbe8a3..d8af292bfc7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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')