I see a scenario where my locale parameter is duplicated when I enter the mounted application. My application looks like this:
resources :blogs
scope "(:locale)" do
mount Auth::Engine => '/auth'
end
If I'm on a blog page and look at the auth link, it looks like /en-us/auth/signoutthat works well, but as soon as I load on any page displayed by the mounted application, for example a profile page /en-us/auth/myprofile', the exit link now looks like/en-us/auth/signout?locale=en-us
I don’t want the querystring to get cluttered, which forces the application to set the locale parameter correctly and then duplicate it in querystring?
source
share