This one incited a bit of facepalm.
When trying to changing part of RightsPro‘s header implementation to use the
HTML BASE tag the element seemed to be ignored completely and resource references were still relative to the page URL. The tag was present, correct, and closed, but having no affect.
It turns out the
BASE tag must appear ‘before any element that refers to an external source’ but MyFaces Tomahawk adds any script references needed immediately after the opening
HEAD tag, rendering the
BASE tag useless.
I don’t have time to modify the Tomahawk source at the moment for a proper fix but did submit a bug.
As a workaround you can put the BASE tag above the head element. It’s not valid HTML but most browsers will still obey it and render the page properly.
A short post, but it may save a few precious hairs from being pulled out. I’ll update if and when the bug is resolved.