Removes the query string from a given URL.
The URL string to process.
Optional. If true, preserves the hash fragment (if present) in the returned URL. Defaults to false.
The URL without the query string. If keepHash is true and a hash fragment exists, it is preserved.
keepHash
4.0.0
2021-12-11
Removes the query string from a given URL.