Skip to content

Putting an engine in a localized block breaks engine routing method #166

@rvasquez-flip4new

Description

@rvasquez-flip4new

Assume you have an engine called Blorgh. And you mount it like this:

Rails.application.routes.draw do
  localized do
    mount Blorgh::Engine,      at: '/blorgh'
  end
end

It is now impossible to call blorgh.unicorns_path in a view. Instead of this you have to append the locale like this:

blorgh_en.unicorns_path

I'm on rails 5.0/5.1 and ruby 2.3.x and 2.4.1 and route translator 5.4.0.

Any clues how to fix this?

Thanks in advance!

Bes tregards
Roberto

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions