Skip to content

QP only transition in beforeModel of application route throws error #11563

Open
@raytiley

Description

@raytiley

Reproduction: http://emberjs.jsbin.com/verocu/2/edit?html,js,output

Our app does some beforeModel checking of data to see what "location" the user is operating. If know query param for this is provided call transitionTo in order to force the user is at a location.

Because of some other logic I just added a catch to the promise chain that the transitionTo is a part of. Now I'm noticing the error shown in the above jsbin.

Interesting thing when trying to recreate is that if you have no catch on the promise chain and the QP is set refreshTrue then a second transition will fire, will have the correct query param and so the user won't notice the failure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions