history.js
history.js copied to clipboard
History.back() sometimes has error
Hello everybody! Thank you for the good library.
I have a problem:
Steps for reproduce:
- go to www.site.ru (this is fake site and he doesn't work, just for example)
- go to www.site.ru/employee
- open information about employee by click for a link www.site.ru/employee/id open modal window, code: History.pushState({obj}, 'Title', 'url');
- When modal window was hidden (bootstrap event hidden.bs.modal) use code: History.back().
- And page stoped work and url stop on this www.site.ru/employee/id, but must go to www.site.ru/employee
Usually, all work is very good, but sometimes Google Chrome browser hangs (1 time from 1, 1 from 10, 1 from 30 and other).
I can reproduce that sometimes and app is hangs.
Some information:
- History.busy() = true
- events popstate/statechange doesn't work
- History.getState().id == history.state
Thanks.