Jelajahi Sumber

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

Fixes #20145
Claire 1 tahun lalu
induk
melakukan
dd7176a4b5
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      config/routes.rb

+ 1 - 1
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')