Resolves a relative URI against a base URL using string manipulation, avoiding the overhead of constructing URL objects.
URL
Handles the same cases as new URL(relative, base):
new URL(relative, base)
//host/path
/path
The relative (or absolute) URI to resolve.
The base URL string to resolve against.
A resolved absolute URL string.
Resolves a relative URI against a base URL using string manipulation, avoiding the overhead of constructing
URLobjects.Handles the same cases as
new URL(relative, base)://host/path) inherit the base scheme./path) replace the base path.