Re: history state (due to pushState) issues
Posted: Mon Feb 01, 2021 3:10 pm
ok, i've got the problem.
in short, what happen is that history.pushState, push two times same page (you can see into history back browser button)
if you switch to
instead of using history.pushState
it lead to the correct result. But of course, the address bar is not updated then.
same was for the solution on landing, but there, it has been possible to wrap into load jQuery( window ).load(function() {
to resolve.
i will check how could never be possible to fix this-
the good question is: why it push two times the same?
in short, what happen is that history.pushState, push two times same page (you can see into history back browser button)
if you switch to
Code: Select all
history.replaceState
it lead to the correct result. But of course, the address bar is not updated then.
same was for the solution on landing, but there, it has been possible to wrap into load jQuery( window ).load(function() {
to resolve.
i will check how could never be possible to fix this-
the good question is: why it push two times the same?