utils/url/appendPathComponent

Appends a path component to a URL.
Source:
Parameters:
Name Type Description
url string URL to append to.
pathComponent string Path component to append. This must not be a hierarchical path (no "/") and will be URL encoded before being appended.
Returns:
URL with path component appended.
Type
string