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
Should be able to replace current route without history entry #47
Comments
I'm implementing this feature on shouldReplace
? hist.replaceState(null, title, path)
: hist.pushState(null, title, path) Usage: var replaceFlag = true
route('path/to', 'Page Title', replaceFlag) But, I couldn't make a test for it, because PhantomJS (1.9) doesn't support |
@GianlucaGuarini any idea about testing this? I've been trying to move to PhantomJS 2.0, but there're other difficulties... |
@cognitom you can run the tests using our browserstack account |
Oh, thanks. I've almost forgot about that. I'll have a try ;) |
@Infeligo we can use this feature from |
History API provides two methods for updating state:
pushState
andreplaceState
. The latter is used when there is no intention to create a new history entry. There are realistic use cases for this. Other frameworks that have routing provide such method (e.g. Backbone and Mithril). Is it possible to add such option to Riot?The text was updated successfully, but these errors were encountered: