extractPureURI
Extracts the pure URI from a URL by removing query parameters and fragments.
Available since v1.9.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
url | string | The URL string to process |
Returns
Section titled “Returns”string — The URI without query parameters and fragments, or the original value if undefined/null
Examples
Section titled “Examples”Remove query parameters and fragments
Section titled “Remove query parameters and fragments”Strips everything after ? or # from the URL.
