base tag

TIL about the base HTML tag. It specifies the base URL to be used for all relative URLs within a document.

<base href="http://www.example.com/">

<!-- Refers to: http://www.example.com/#relative -->
<a href="#relative">Relative</a>

It is supported by all major browsers.