Router initialisation with / adds a history entry in FF
sennett opened this issue · comments
Anthony Sennett commented
Using this to initialise a router:
var router = new Router();
router.init('/');
This appends #/
to the URL.
Loading a page with this script in a new tab with Chrome does not generate a new entry in the history (expected IMO). The back button goes to the new tab page.
But doing in with Firefox 37.0.2 creates a new history entry, and I have to press back twice to get back to the new tab page.
I reproduced here: http://output.jsbin.com/tejahudike/2 (editable here: http://jsbin.com/tejahudike/2/edit).
Formal reproduction:
- Open a new tab in FF
- Load URL http://output.jsbin.com/tejahudike/2
- Press the back button
- expected: firefox goes back to previous page - "we are on the page" is not visible - this is the behaviour in Chome
- actual: firefox goes back to the same page (removes
#
URL frangment)