Skip to content

Controller runs twice when activating a state with slash in the params #2339

Closed
@cvn

Description

@cvn

When activating a state with a slash in the params, it will call that state's controller twice.

$state.go('myState',{previous:'/last/page'});

I wrote some tests to demonstrate:

http://plnkr.co/edit/WgBVFpArGhamZe5mVtWz?p=preview

Thanks to @kathygit for discovering this, as well as providing a workaround (url encoding the slashes) in the issue referenced below.

Tested with Angular 1.4.7 and UI-Router 0.2.15.

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