Skip to content

Conversation

rogerzxu
Copy link

Fixing issue mentioned in #201

Using the new URL constructor handles all cases correctly:

new URL('/relative', 'https://localhost:80/');
new URL('/relative', 'https://localhost:80/api);
new URL('https://localhost:80/relative', 'https://localhost:80/api);

// all become https://localhost:80/relative

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