Reset "initial href" for popstate fix also on pushState and replaceState
Rename variable for clarity
Merge pull request #1530 from njam/history-popstate-safari

Fix popstate safari workaround