Files
probo/packages/helpers/src/trustCenter.ts
Émile Ré 8c772661bf Use framework logo on console & trust
Signed-off-by: Émile Ré <nemile.re@gmail.com>
2025-12-16 19:05:34 +01:00

11 lines
242 B
TypeScript

export function getTrustCenterUrl(path: string): string {
const currentPath = window.location.pathname;
const trustMatch = currentPath.match(/^\/trust\/([^/]+)/);
if (!trustMatch) {
return `/${path}`;
}
return `../${path}`;
}