Skip to content

Loading…

add `replaceHash()` method #35

Closed
millermedeiros opened this Issue · 0 comments

1 participant

@millermedeiros

just a proxy to document.location.replace() which accepts paths fragments, it will change hash value without keeping old value in the history record...

how to do it right now: document.location.replace('#/foo/bar')

proposed change: hasher.replaceHash('foo', 'bar') and hasher.replaceHash('foo/bar')

PS: add unit tests (not sure how all browsers behaves when setting hash value through location.replace)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.