Use href to extract host path
Do not depend on initial popstate event