Home > @uniformdev/design-system > addPathSegmentToPathname
addPathSegmentToPathname() function
Joins different variants of parent relative url with path segment. Path can be "", "/" and "/foo/bar"
Signature:
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
path |
string | |
|
pathSegment |
string |
Returns:
string