Update href consistent with context on back button handlePopState.