Skip to content

Minor Breaking Change in 0.2.16 #2528

@abhishekbhardwaj

Description

@abhishekbhardwaj

Talking specifically about the bug fix in the $urlRouter code in 0.2.16:

Sort URL rules by specificity. Potential minor BC if apps were relying on rule registration order.

One of my application expects the states to be in a certain order I think? - (because I have 2 states for one url - 1 for authenticated users and 1 for unauthenticated users).

This is what should happen - if user goes to url:

  1. If unauthenticated, taken to state 1.
  2. If authenticated, taken to state 2.

Order the states are registered in:

  1. State 1
  2. State 2

Now what happens is that it works perfectly fine on Chrome, but on Firefox it never goes to state 1 but keeps redirecting to state 2, which essentially redirects the user again to a login screen.

On moving state 2 above state 1 in the registration order: it works on Firefox as expected but doesn't on Chrome.

Reverting to 0.2.15 fixed it for me but I'd like to upgrade. Any help or pointers would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions