Detect hash changes via back/forward