removeContextFromSlug

Function

Remove context (prefix) from a slug

  • removeContextFromSlug(slug: string, context: string) : string

Parameters

Parameter Type Default Notes
slug Required string

Hub API slug with context

context Required string

usually a portal's orgKey

Returns

slug without context

string

Function defined in common/src/content/slugs.ts:62