diff --git a/src/globalState/provider/LegalLinksProvider.tsx b/src/globalState/provider/LegalLinksProvider.tsx index 2352891cc..c6f53b067 100644 --- a/src/globalState/provider/LegalLinksProvider.tsx +++ b/src/globalState/provider/LegalLinksProvider.tsx @@ -49,7 +49,13 @@ export function LegalLinksProvider({ ...legalLink, getUrl: (params: { [key: string]: string | number | null | undefined; - }) => getUrl(url, params) + }) => + getUrl( + url.match(/http(s)?:\/\//) + ? url + : `${window.location.origin}${url}`, + params + ) }) ), [externalLegalLinks, settings.legalLinks, getUrl]