Please help me understand the functionality of the <base>
tag's href attribute.
I have a website hosted at http://goodsite.org/bob
. other sites are hosted at http://goodsite.org/others
.
I am planning to move my application to http://bettersite.org/bob
.
In order to support this I have a base url in my header.
<base href="/bob/">
.
My links look something like this: <a href="thatonething.img">That one thing</a>
As hoped I am seeing the links as expected (e.g. "http://goodsite.org/bob/thatonething.img"
)
Question:
Does <base>
tag universally support root relative urls (i.e. href="/bob/"
)?
This seems to work in my testing but I am having a little more trouble reading through the specifications. More generally I'm wanting to know if I am misusing this tag.