title: document.location.href not working on Safari 2020
body: <p>I'm having issue redirecting a webpage on all browsers. I created a custom page for a client about a year back on <code>SHOPIFY</code> and now the redirect function no longer works.</p>
  
  <p>I was originally using <code>document.location.href = "/cart"</code> and all worked well. But I recieved a call from him today saying the page wont redirect anymore on his <code>IPhone</code>.</p>
  
  <p>I changed it to <code>window.top.location.href</code>, this fixed it for most browsers except safari. I understand that the best way for this to work on all browsers is the <code>document</code> version. But that seems to have been out dated this year.</p>
  
  <pre><code>    setTimeout(function(){ document.location.href = '/cart';},1000);
  </code></pre>
  
  <p>Checking the user agent of the browser and if it's safari we can do a different tailored version of a redirect, just haven't found out how to do this on the new safari yet.</p>
  
  <p>@stanislav seems to have the same issue from this link, I suspect we will start to see the number of people with this issue growing. </p>
  
  <p><a href="https://stackoverflow.com/questions/31223216/why-isnt-window-location-href-not-forwarding-to-page-using-safari">Why isnt window.location.href= not forwarding to page using Safari?</a></p>
  
  <p>Thanks to all for the input and suggestions, hoping to get the resolved soon.</p>