Kind: Function
Source: atloria-monorepo/apps/web/src/lib/url-utils.ts
Parse a document URL to extract slug and urlId Supports formats:
- /doc/{slug}-{urlId}
- /doc/{audience}/{slug}-{urlId}
Signature
tsfunction parseDocumentUrl(pathname: string): ParsedDocumentUrl | null
Parameters
| Name | Type |
|---|---|
pathname | string |
Returns: ParsedDocumentUrl | null
Was this page helpful?