uriSlugToKeywordSlug

Function

Uri slugs have :: as a separator, but we need to use | in the typeKeywords. This function converts a uri slug to a typeKeyword slug.

  • uriSlugToKeywordSlug(slug: string) : string

Parameters

Parameter Type Default Notes
slug Required string

Returns

string

Function defined in common/src/items/_internal/slugConverters.ts:10