removeContextFromSlug
Remove context (prefix) from a slug
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