I'm using high_voltage gem that provides the following route:
match "/pages/:id", to: "high_voltage#show", as: "pages"
I also have my own routes to make some URLs prettier:
get "/faq", to: "high_voltage#show", id: "faq"
Without route translations, when I'm on page /faq, url_for(locale: :de) generates /faq?locale=de. When I enable route translations it generates /pages/faq?locale=de instead.
Any idea why translating routes changes result of url_for?
I'm using high_voltage gem that provides the following route:
I also have my own routes to make some URLs prettier:
Without route translations, when I'm on page
/faq
,url_for(locale: :de)
generates/faq?locale=de
. When I enable route translations it generates/pages/faq?locale=de
instead.Any idea why translating routes changes result of
url_for
?