-
-
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
<LinkTo>
without @route
param but with @query
breaks when navigating to error route
#17963
Comments
<LinkTo
> without @route
param but with @query
breaks when navigating to error route<LinkTo>
without @route
param but with @query
breaks when navigating to error route
Thank you for reporting! |
Just to confirm, this is a bug in 3.10.0-beta series right? |
Correct! AFAICT it's working in 3.9. |
2hu12
added a commit
to 2hu12/ember.js
that referenced
this issue
Apr 25, 2019
Try to fix emberjs#17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
2hu12
added a commit
to 2hu12/ember.js
that referenced
this issue
May 6, 2019
Try to fix emberjs#17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
2hu12
added a commit
to 2hu12/ember.js
that referenced
this issue
May 7, 2019
Try to fix emberjs#17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
2hu12
added a commit
to 2hu12/ember.js
that referenced
this issue
May 7, 2019
Try to fix emberjs#17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
2hu12
added a commit
to 2hu12/ember.js
that referenced
this issue
May 7, 2019
Try to fix emberjs#17963, I'm not sure this is the right way and it's weird, but the old "qualifiedRouteName" property works in this way and "_route" is used similarly to "qualifiedRouteName".
dgeb
added a commit
that referenced
this issue
May 29, 2019
Attempt to reproduce failure in #17963: `<LinkTo>` without `@route` param but with `@query` breaks when navigating to error route
rwjblue
added a commit
that referenced
this issue
Jun 14, 2019
Reproduce failure in #17963: `<LinkTo>` without `@route` param but with `@query` breaks when navigating to error route. Co-authored-by: Robert Jackson <me@rwjblue.com>
rwjblue
pushed a commit
to 2hu12/ember.js
that referenced
this issue
Jun 14, 2019
rwjblue
added a commit
to 2hu12/ember.js
that referenced
this issue
Jun 14, 2019
… route. Reproduce failure in emberjs#17963: `<LinkTo>` without `@route` param but with `@query` breaks when navigating to error route. Co-authored-by: Robert Jackson <me@rwjblue.com>
Awesome! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While working on ember-engines/ember-engines#642 to make ember-engines compatible with Ember Octane, I noticed that #17772 appears to have broken an edge case for
<LinkTo>
without a@route
argument, but with a@query
argument.I made a reproduction here: https://codesandbox.io/s/p32ozvvz0x
If no explicit
@route
is passed it will be set to (or remain)UNDEFINED
:ember.js/packages/@ember/-internals/glimmer/lib/components/link-to.ts
Lines 895 to 900 in 2cc3573
In this case
_route
returns the currently active route:ember.js/packages/@ember/-internals/glimmer/lib/components/link-to.ts
Lines 490 to 493 in 2cc3573
This then breaks the
href
computed property in L791, if the router performs an intermediate transition to anerror
route:ember.js/packages/@ember/-internals/glimmer/lib/components/link-to.ts
Lines 749 to 804 in 2cc3573
routing.generateURL(route, models, query)
is called as:Which misses the
error
param:This apparently used to work and while being a weird edge-case, I would still expect it to work.
The text was updated successfully, but these errors were encountered: