Support ID-based trust center URLs with slug fallback
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -157,10 +157,10 @@ export default function TrustCenterPage({ queryRef }: Props) {
|
||||
});
|
||||
};
|
||||
|
||||
const trustCenterUrl = organization.trustCenter?.slug
|
||||
const trustCenterUrl = organization.trustCenter?.id
|
||||
? organization.customDomain?.domain
|
||||
? `https://${organization.customDomain.domain}`
|
||||
: `${window.location.origin}/trust/${organization.trustCenter.slug}`
|
||||
: `${window.location.origin}/trust/${organization.trustCenter.id}`
|
||||
: null;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user