selectivizr icon indicating copy to clipboard operation
selectivizr copied to clipboard

Make getProtocolAndHost work on URLs that doesn't end with `/`

Open shesek opened this issue 12 years ago • 1 comments

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?]).

shesek avatar Mar 04 '12 10:03 shesek

@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?

corysimmons avatar Feb 06 '16 07:02 corysimmons