preserve GET params in url

This commit is contained in:
Andy Brett
2021-03-06 14:09:10 -08:00
parent 5a19a14042
commit ef38abed28

View File

@@ -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