feat(router): allow not leaving when only params change

fix #1

I've done some changes in addition to only the bug fix, let me know if this is ok (which I hope) or if you prefer to see different commits.