Joins a base URL and a path, normalizing slashes at the boundary.
The base URL.
The path segment to append.
joinUrl("https://example.com/api/", "/users") // => "https://example.com/api/users"joinUrl("https://example.com", "users") // => "https://example.com/users" Copy
joinUrl("https://example.com/api/", "/users") // => "https://example.com/api/users"joinUrl("https://example.com", "users") // => "https://example.com/users"
Joins a base URL and a path, normalizing slashes at the boundary.