After testing history extension for nette.ajax.js I've encountered an unwanted feature in fix discussed here: https://github.com/vojtech-dobes/nette.ajax.js/issues/73.
When I click through some sections the plugin works just fine but when I navigate back through those sections I'm not able to load the initial page.
This part of 'popstate' handler is suspicious:
After testing history extension for nette.ajax.js I've encountered an unwanted feature in fix discussed here: https://github.com/vojtech-dobes/nette.ajax.js/issues/73. When I click through some sections the plugin works just fine but when I navigate back through those sections I'm not able to load the initial page. This part of 'popstate' handler is suspicious:
https://github.com/vojtech-dobes/nette.ajax.js/blob/master/history/history.ajax.js#L45
Explained:
My solution would be to add another variable containing true/false indication whether user has already loaded another page or not.