next-tick the popstate so handlers can be registered and fix the current === href check