-
Notifications
You must be signed in to change notification settings - Fork 42
Description
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!