From 8230253142756052f4de3709da408ddfb385bf60 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Thu, 9 Jul 2026 20:26:25 +0200 Subject: [PATCH] fix(ui): derive the VK-iOS store link from the deployment origin Replace the hardcoded erudit-game.ru host with location.origin, so the iOS store note's "other version" link points at this deployment's own site root (prod or the contour) without a hardcoded host or build-arg wiring. --- ui/src/screens/Wallet.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/screens/Wallet.svelte b/ui/src/screens/Wallet.svelte index e3e8bb4..61be5e9 100644 --- a/ui/src/screens/Wallet.svelte +++ b/ui/src/screens/Wallet.svelte @@ -30,6 +30,9 @@ // muted and taps explain why, rather than hiding the storefront. VK's device family is not on the // client platformSubtype (server-derived) — read it from the signed vk_platform launch param. const purchaseBlocked = context === 'vk' && normalizeSubtype(vkPlatform()) === 'ios'; + // The "other version" link points at this deployment's own site root (the landing lists every + // platform), so it follows prod vs the contour without a hardcoded host. + const siteRoot = typeof location !== 'undefined' ? `${location.origin}/` : '/'; const values = $derived(catalog?.products.filter((p) => p.kind === 'value') ?? []); const packs = $derived(catalog?.products.filter((p) => p.kind === 'pack') ?? []); @@ -154,7 +157,7 @@

{t('wallet.store')}

{#if purchaseBlocked} -

{t('wallet.iosBlockedPre')}{t('wallet.iosBlockedLink')}{t('wallet.iosBlockedPost')}

+

{t('wallet.iosBlockedPre')}{t('wallet.iosBlockedLink')}{t('wallet.iosBlockedPost')}

{/if} {#each values as p (p.productId)}