Skip to content

feat(history) add history index getter#42

Merged
EisenbergEffect merged 1 commit intoaurelia:masterfrom
jwx:history-index
Oct 8, 2018
Merged

feat(history) add history index getter#42
EisenbergEffect merged 1 commit intoaurelia:masterfrom
jwx:history-index

Conversation

@jwx
Copy link
Member

@jwx jwx commented Oct 8, 2018

Get the current history index.

Get the current history index.
jwx added a commit to jwx/router that referenced this pull request Oct 8, 2018
Preventing a navigation with canDeactivate doesn't cancel the browser history navigation. This fix moves the browser back to the index where navigation was cancelled.

Depending on PR aurelia/history-browser#42.
Closes aurelia#528.
@EisenbergEffect
Copy link
Contributor

@jwx Can you describe the use case for this?

@jwx
Copy link
Member Author

jwx commented Oct 8, 2018

It's for the bugfix in aurelia/router#621.

@EisenbergEffect
Copy link
Contributor

Gotcha!

@EisenbergEffect EisenbergEffect merged commit ced1ce0 into aurelia:master Oct 8, 2018
@jwx jwx deleted the history-index branch October 9, 2018 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants