[Minor] var renaming
Bugfix: popstate works on URL with different ?search

Previously on popstate, if two URL had the same pathname (URL without ?search and #hash) the function invoked on popstate would abort. But you don't want to abort when ?search is different, only when #hash is.