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

page.back() causes page reload

Open ibc opened this issue 10 years ago • 2 comments

  • Initial URL: http://localhost
  • page('#test1')
  • Current URL: http://localhost/#test1 (no page reload happened, OK)
  • I press browser "back" button.
  • Current URL: http://localhost (no page reload happened, OK)

Now with page.back():

  • Initial URL: http://localhost
  • page('#test1')
  • Current URL: http://localhost/#test1 (no page reload happened, OK)
  • page.back()
  • Current URL: http://localhost (page reloaded!)

Is this a bug? Anyhow page.back() is not documented so I do not know how it is supposed to behave.

ibc avatar Jul 01 '15 10:07 ibc

that indeed is not supposed to happen. can you make an isolated test case?

rstacruz avatar Jul 01 '15 12:07 rstacruz

I'm so new to this library and I do not yet whether I'll need it or not, so I cannot spend the required time to make a proper test unit.

Said that, it is easily reproducible via the JS console by performing the exact steps explained above.

ibc avatar Jul 01 '15 12:07 ibc