The base URL to be used for creating the canonical URL.
An optional pathname to be appended to the base URL. Defaults to an empty string.
A Result
object containing a URL instance if the URL is valid,
or an Error
object if the base URL is not valid.
Generated using TypeDoc v0.24.7
Creates a canonical URL by combining a base URL and an optional pathname.
Example
Example
Handle an invalid input: