Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shesek
Copy link

@shesek shesek commented Mar 4, 2012

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

@corysimmons
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants