Support ID-based trust center URLs with slug fallback

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-13 23:23:08 +02:00
parent a848f81a5c
commit c4c4fda49f
4 changed files with 84 additions and 32 deletions

View File

@@ -6,8 +6,8 @@ export function getLogoUrl(logoPath: string): string {
return `/logos/${logoPath}`;
}
const slug = trustMatch[1];
return `/trust/${slug}/logos/${logoPath}`;
const slugOrId = trustMatch[1];
return `/trust/${slugOrId}/logos/${logoPath}`;
}
export function getTrustCenterUrl(path: string): string {