jfromaniello/url-join

Wrong relative protocol

ArmorDarks opened this issue · 2 comments

Case:

urljoin('/', 'test')

becomes //test, while expected to be /test.

#30

This pull request fixes that case as well. Although it is debatable whether that is a case that should be handled like that in url-join, because it is not an URL at all. But I think just simple paths should also be processed correctly.

This has been fixed in v3.