Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale parameter gets "consumed" even if URL filter is not active #83

Open
awh-tokyo opened this issue Feb 25, 2021 · 0 comments
Open

Comments

@awh-tokyo
Copy link

With config.url_filter_enabled set to false, the locale parameter is still removed from URLs:

    def around_generate(params, &block)
      locale = params.delete(:locale) || ::I18n.locale

Is this by design? I wanted to write my own URL filter but I don't have the locale available to me anymore.

I will end up overriding the provided locales filter with a decorator instead, so I can solve my own problem, but just wanted to point this out in case it was a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant