Browser history strange behaviour

51 Views Asked by At

For my PHP based Ajax heavy project I'm using

history.pushState({}, '', newUrl);

to change url in adressbar.

But this disables forward and backward buttons of browsers. When I backward url changes in adressbar but nothing happen. It's okay if it will not ajax load but just redirect to previous url (with page refresh). I don't need complex popstate or other thing.

How to fix this issue?

0

There are 0 best solutions below