getLocationId = ({ pathname, search, hash }) => {
  return pathname + (search ? "?" + search : "") + (hash ? "#" + hash : "");
}
Prevents react-router from pushing the same
page to the history twice which leads to
multiple clicks on the back icon of the browser
being necessary to go back into the history.