angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

URL changed even if canActivate returns false #349

Open acalvo opened 9 years ago

acalvo commented 9 years ago

As the title says, the URL changes even if you try to access a controller that has a defined canActivate method which always returns false. It doesn't perform the navigation (as expected), but the URL does change.

Here's a Plunker: http://plnkr.co/edit/IqRZHLc28uNG3nuNTRCb

FelikZ commented 9 years ago

Any workaround?