fix current route on popstate