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

ParameterTypeDescription
pathstring
pathSegmentstring

Returns:

string