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.