title: Absolute path redirect in React
body: <p>I'm trying to build a bit.ly clone and I would like to redirect to an exact URL.</p>
  
  <p>Unfortunately if I use window.location.replace(str) in some cases it believes I would like to redirect to a relative URL. For example str = "google.com".</p>
  
  <p>I'm wondering if there is a way to force an absolute path redirect that I am missing</p>