AjaxPageParser
AjaxPageParser copied to clipboard
Buggy duplicate pushstate and back button
I really like this plugin, and want to continue using it but have spotted 2 significant bugs. I was hoping you could take a look and perhaps offer a fix when possible. It's hard to use in production while these issues are pending.
1)When visiting the demo page - http://terwanerik.github.io/AjaxPageParser/index.html
Refreshing the page several times keeps adding a pushState to the browser's history, making the back button not actually link to the previous page. It shouldn't be adding empty history states like that.
- Further, when you open the demo in a new tab and navigate to the second page, and then hit "back" on the browser, the address bar gets updated, but the script does not replace the ajax content region.
Yeah i've been planning a rewrite for this, in vanilla JS, for a while now. When/if i have some free time i'll start work on that, fixing this, and other things, that are wrong with this plugin.