@tempots/ui
locationFromURL() function
Converts a URL string into a LocationData object.
Signature:
locationFromURL: (url: string, baseUrl?: string) => LocationData
Parameters
Parameter |
Type |
Description |
---|---|---|
url |
string |
The URL string to convert. |
baseUrl |
string |
(Optional) |
Returns: LocationData
The LocationData object representing the URL.