Support ID-based trust center URLs with slug fallback
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user