title: In Selenium IDE, how to get the value of the base url
body: <p>Is it possible to retrieve the value of the <strong>base url</strong> from inside a Selenium script (a plain HTML-saved script from Selenium IDE)?</p>
  
  <p>What I'm trying to do is verify the current url using <code>assertLocation</code>. But <code>assertLocation</code> returns the <em>absolute url</em>. I would like to compare the current url to a <em>relative url</em> without having to use an <code>*</code> at the start of the url.</p>
  
  <p>I'd like to have access to the base string because I want to be able to run the tests on different sites (various dev sites + production site), but if I use the <code>*</code> I can not check for the root page (<code>*/</code> would be true for each page that ends with a <code>/</code>...)</p>
  
  <p>This is what I currently do:</p>
  
  <blockquote>
    <p>|assertLocation | */some-page | |</p>
  </blockquote>
  
  <p>This is what I'd like to do:</p>
  
  <blockquote>
    <p>|assertLocation | baseURL +
    "/some-page" | |</p>
  </blockquote>
  
  <p>Note: is it even possible to:</p>
  
  <ol>
  <li>use a variable in the target;</li>
  <li>concatenate a variable and a string?</li>
  </ol>