title: Page Switcher using the url (javascript)
body: <p>Is it possible to switch pages depending on the url using javascript?</p>
  
  <p>I am currently working on a large scale site which requires a switcher to be added so that users can switch between specific market sites depending if the page which they are viewing is available on the other market.</p>
  
  <p>What i exactly want is to be able to give the user the option to view the same page but on another market and if the page does not exist e.g. 400 page to redirect to that specific markets homepage.</p>
  
  <p>Does anyone know if this functionality is possible using javascript?</p>
  
  <p>Kind Regards,</p>
  
  <p>B</p>