Skip to content

Route generation between engines broken #10409

@spohlenz

Description

@spohlenz

It seem that this commit (5b3bb61) breaks the generation of routes between engines.

Given two engines (say Admin::Engine mounted at /admin and Blog::Engine mounted at /blog), any references to Blog's routes from within Admin causes /admin to be prepended to the generated URL.

  • From the Rails application, blog.root_path produces /blog (correct).
  • From within the Blog engine, blog.root_path or root_path produces /blog (correct).
  • From within the Admin engine, blog.root_path produces /admin/blog (incorrect).

This issue is not present in Rails 3.2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions