Closed Kreshnik closed 9 years ago
It would be nice if you gave an example of how to reproduce it. Thank you!
Basically when I hit F5 in the browser the last part of the URL duplicates.
I have the same problem in IE8-9. Every time you refresh the page another # is added...
https://dev.online4.nib.com.au/health-insurance/join/your-details#/health-insurance/join/your-details#/health-insurance/join/your-details#/health-insurance/join/payment-details
I can prevent the double-up if I replace line 743 with the following code. However, this seems to break the forward/back buttons after having gone back to a different URL e.g. https://dev.online4.nib.com.au/health-insurance/quote => https://dev.online4.nib.com.au/health-insurance/join/your-details
.
if (urlObject._hash) {
windowLocation.replace(urlObject._hash);
} else {
windowLocation.replace('#'+urlObject._special);
}
I'll see if I can get a minimal example setup.
@devote I created an example project. Set it up, navigate to http://localhost:3000/page-1
and hit refresh a number of times.
I want clarify the cause of this problem that be you have not encountered this problem more.
You used component visionmedia-page.js which is not designed to work with the library HTML5-History-API. Because it does not consider requirements of the library HTML5-History-API.
This has been seen previously Support IE8+ via HTML5-History-API polyfill
pull request from me https://github.com/visionmedia/page.js/pull/109
Please reopen it or create new issue if you needed. Thanks!
@devote i got same error in IE9 On jQuery ready i use
this.history.replaceState($.extend({
doNotChangeState: false,
url: window.location.href
}, this.options),
document.title,
window.location.href
);
Add own settings to current state and window.location.href have hash (start url http://mydomain.com/#/hello-world-3/);
I have noticed one thing in IE9, after using the page for a while the hash will duplicate see image bellow;