I handled the browser back button like this:
switch (history.location.pathname.split("/")[1]) { case "Page1": history.push("/&q