Join URL and path
Python
py
import urllib.parse
urllib.parse.urljoin("https://example.com/", "/path")
# returns "https://example.com/path"
py
import urllib.parse
urllib.parse.urljoin("https://example.com/", "/path")
# returns "https://example.com/path"