Skip to content

Commit

Permalink
[BUGFIX release] Ensure query param only link-to's work in error states.
Browse files Browse the repository at this point in the history
Try to fix #17963

(cherry picked from commit 24ccd77)
  • Loading branch information
2hu12 authored and rwjblue committed Jun 17, 2019
1 parent 946eda5 commit 39bb1c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@ember/-internals/glimmer/lib/components/link-to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
_currentRouterState: alias('_routing.currentState'),
_targetRouterState: alias('_routing.targetState'),

_route: computed('route', '_currentRoute', function computeLinkToComponentRoute(this: any) {
_route: computed('route', '_currentRouterState', function computeLinkToComponentRoute(
this: any
) {
let { route } = this;
return route === UNDEFINED ? this._currentRoute : route;
}),
Expand Down

0 comments on commit 39bb1c3

Please sign in to comment.