fix(app): treat official invite and gift links as external when self-hosted (#1650)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-15 21:08:22 +02:00
1 parent 0be2a7fed9
commit 5f9e4db230
2 files changed
+6

No files matched your search

@@ -14,6 +14,9 @@ const OFFICIAL_GIFT_URL_BASES = Object.freeze([
const GIFT_CONFIG: CodeLinkUtils.CodeLinkConfig = {
path: 'gift',
get urlBases() {
if (RuntimeConfig.isSelfHosted()) {
return [RuntimeConfig.giftUrlBase];
}
return [RuntimeConfig.giftUrlBase, ...OFFICIAL_GIFT_URL_BASES];
},
};
@@ -22,6 +22,9 @@ const OFFICIAL_INVITE_URL_BASES = Object.freeze([
const INVITE_CONFIG: CodeLinkUtils.CodeLinkConfig = {
path: 'invite',
get urlBases() {
if (RuntimeConfig.isSelfHosted()) {
return [RuntimeConfig.inviteUrlBase];
}
return [RuntimeConfig.inviteUrlBase, ...OFFICIAL_INVITE_URL_BASES];
},
};