When I use the html tag to define a base URL for all relative links on a page, anchor links also refer directly to the base URL. Is there a way to
From the example given in the question. To achieve desired behavior, I do not see the need of using "base" tag at all.
The page is at http://example.com/foo/
Below code will give the desired behaviour:
bar baz
The trick is to use "/" at the beginning of string href="/bar/".