refinerycms-i18n icon indicating copy to clipboard operation
refinerycms-i18n copied to clipboard

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

Open awh-tokyo opened this issue 4 years ago • 0 comments

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.

awh-tokyo avatar Feb 25 '21 23:02 awh-tokyo