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

fix for #428 introduces new misbehaviour #435

Merged
merged 1 commit into from Jan 30, 2015
Merged

Conversation

webcss
Copy link
Contributor

@webcss webcss commented Jan 30, 2015

The fix for #428 provided prevents entries beeing written to history. History.back() or hitting browsers back-button don't work anymore, since there are no history entries.
This is because you are assigning the new path to route to to currentPath and compare these, which always turn out to be equal. Saving the currentPath before the assignment fixes this missbehaviour.

The fix for MithrilJS#428 provided prevents entries beeing written to history. History.back() or hitting browsers back-button don't work anymore, since there are no history entries. 
This is because you are assigning the new path to route to to currentPath and compare these, which always turn out to be equal. Saving the currentPath before the assignment fixes this missbehaviour.
lhorie added a commit that referenced this pull request Jan 30, 2015
fix for #428 introduces new misbehaviour
@lhorie lhorie merged commit eb3885e into MithrilJS:next Jan 30, 2015
@lhorie
Copy link
Member

lhorie commented Jan 30, 2015

Thanks! Good catch!

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.

None yet

2 participants