Skip to content

Expose configuration to opt-out for specific route names. #41

@rwjblue

Description

@rwjblue

It is a fairly common practice to add globbing catch-all style routes to your Router.map to handle invalid links and whatnot. Since these catch-all routes will always match, ember-href-to's link handler will happily transition into the 404 route.

In deployments where a given root is fully owned by the Ember app, this is a totally fine assumption to make. However, in scenarios where things outside of your Ember app also live on the same domain (i.e. you are transitioning from server render pages to Ember app pages) you actually want to ignore the 404 route when deciding if a given link click is handleable.

Would you be open to adding support for a blacklist (an array of route names) to opt-out of the internal transition behavior?

PS: I love this addon, thank you for working on it!

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