Skip to content

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

@awh-tokyo

Description

@awh-tokyo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions