selectivizr
selectivizr copied to clipboard
Make getProtocolAndHost work on URLs that doesn't end with `/`
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?]).
@keithclark disappeared so I'm going to try and maintain this project at https://github.com/corysimmons/selectivizr2
Would you please reopen/rebase your PR over there?