Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(history) add history index getter #42

Merged
merged 1 commit into from
Oct 8, 2018

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