In Selenium IDE, how to get the value of the base url
Try this
storeEval|window.document.domain|hostassertLocation|http://${host}/some-page|
You can also open your base page and use storeLocation to put the current location into a variable:
|open|/|||storeLocation|host|||assertLocation|${host}somepage.html
Bonus: here's how I figured out the corresponding SSL url
|storeEval|window.document.location.toString().replace(new RegExp("^http://([^:]+):80"), "https://$1:40");|hostSSL|
The above solutions cause issues with my development environment being on a non-standard port. This solution may also help with https. If you truly want the base url:
<tr><td>storeEval</td><td>selenium.browserbot.baseUrl</td><td>baseurl</td></tr><tr><td>echo</td><td>${baseurl}</td><td></td></tr>