getProtocolAndHost doesn't work properly when the <base href> is set without a trailing / (e.g. https://github.com). I know its technically not correct for URLs to have no path at all, but this caused me some issues because of the way WordPress stores the base URL (see the last paragraph here [the rest of the post might be interesting too, perhaps it could be solved in Selectivizr?]).
getProtocolAndHost
doesn't work properly when the<base href>
is set without a trailing/
(e.g. https://github.com). I know its technically not correct for URLs to have no path at all, but this caused me some issues because of the way WordPress stores the base URL (see the last paragraph here [the rest of the post might be interesting too, perhaps it could be solved in Selectivizr?]).