From ef38abed285723f637a7fabbe7286bc15e26c6b0 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Sat, 6 Mar 2021 14:09:10 -0800 Subject: [PATCH] preserve GET params in url --- config/routes/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes/api.rb b/config/routes/api.rb index 5fa9db4e97..7a314b7c0c 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -79,6 +79,6 @@ Openfoodnetwork::Application.routes.draw do end end - match '*path', to: redirect("/api/v0/%{path}"), via: :all, constraints: { path: /(?!.*v0).+/ } + match '*path', to: redirect(path: "/api/v0/%{path}"), via: :all, constraints: { path: /(?!.*v0).+/ } end end