about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-09 01:30:33 +0100
committerGitHub <noreply@github.com>2022-11-09 01:30:33 +0100
commitdd7176a4b54a69f4a96648acb71abdff9fd45e3c (patch)
tree644da17978f577112e5374f2b11b47cc3971ab72
parent6ba52306f9d2611a06326445230b54c156c37e53 (diff)
Fix redirects from /web/ discarding everything after a dot (#20148)
Fixes #20145
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index c133acbe8..d8af292bf 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')