-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Controller#transitionToRoute and Route#intermediateTransitionTo work in Engines #14176
Conversation
// only alter the routeName if it's actually referencing a route. | ||
if (owner.routable && typeof routeName === 'string') { | ||
if (resemblesURL(routeName)) { | ||
throw new EmberError('Route#transitionTo cannot be used for URLs. Please use the route name instead.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard-coded source Route#transitionTo
.
☔ The latest upstream changes (presumably #14199) made this pull request unmergeable. Please resolve the merge conflicts. |
9b1170c
to
e97d855
Compare
…o work in Engines Also adds basic tests to verify programmatic transition behavior in Engines.
e97d855
to
63df7db
Compare
Oops, forgot to ask about commit prefix. I think this should target release, c/d? |
I believe so since it's a gap in functionality of the current release. |
OK, I've cherry-picked into beta, but I think we need to PR directly against release. Lots of conflicts (due to imports changing from absolute to relative and removing the engines feature flag), and I'd like to get a CI run. Would you mind doing that? |
@rwjblue sure, I'll try to get to it sometime this weekend. |
Addressing ember-engines/ember-engines#159 and ember-engines/ember-engines#186.
Planning to add tests (though there don't seem to be any tests for related features).