Proof of concept for terminal forwarding#1
Conversation
|
Writing some documentation: The use-case for specifying a terminal route is _not_ to prevent us from having to create a route whose content is simply: beforeModel() {
this.replaceWith('non-terminal.sibling');
}The goal is instead to make sure that redirects of this nature which are not dynamic can easily be identified and accounted for in other tools such as ember-prefetch. |
|
Looking at
Which means that we can't prevent things like |
There was a problem hiding this comment.
I think we might be able to get away with manually passing forward the new transition from line 22 into _super as long as we're 100% certain that this is the first reopen.
/cc @nickiaconis
This PR adds an option that allows declaring a route to be an invalid terminal state, while also declaring what route should actually be visited if someone tries to visit as the terminal route.
TODO: