history.js icon indicating copy to clipboard operation
history.js copied to clipboard

History.back() sometimes has error

Open acteralex opened this issue 10 years ago • 0 comments

Hello everybody! Thank you for the good library.

I have a problem:

Steps for reproduce:

  1. go to www.site.ru (this is fake site and he doesn't work, just for example)
  2. go to www.site.ru/employee
  3. open information about employee by click for a link www.site.ru/employee/id open modal window, code: History.pushState({obj}, 'Title', 'url');
  4. When modal window was hidden (bootstrap event hidden.bs.modal) use code: History.back().
  5. 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.

acteralex avatar May 25 '15 10:05 acteralex