Closed as not planned
Description
Bug report
Bug description:
on joining a url where the base url not finish on "/" have the following impact
from urllib.parse import urljoin
print(urljoin('https://localhost/1/','2'))
# => https://localhost/1/2
print(urljoin('https://localhost/1/','/2'))
# => https://localhost/2
print(urljoin('https://localhost/1','/2'))
# =>https://localhost/2
print(urljoin('https://localhost/1','2'))
# => https://localhost/2
CPython versions tested on:
3.12
Operating systems tested on:
macOS