Url Helpers
Utility functions for working with urls.
Functions
| Function | Description |
|---|---|
cleanPath | Clean an URL by removing duplicate slashes. |
extractPureURI | Extracts the pure URI from a URL by removing query parameters and fragments. |
onlyPath | Extract only the path from an URI with optional query and fragments. |
relativeURLToAbsolute | relativeURLToAbsolute |
withLeadingSlash | Adds a leading slash / to the given URL if it is not already present. |
withTrailingSlash | Adds a trailing slash / to the given URL if it is not already present. |
withoutLeadingSlash | Removes the leading slash / from the given URL if it is present. |
withoutTrailingSlash | Removes the trailing slash / from the given URL if it is present. |