From ccebd56715274763bcfefae88899749940426981 Mon Sep 17 00:00:00 2001
From: thekiba
Date: Fri, 1 Mar 2024 02:58:16 +0400
Subject: [PATCH] feat: redirect mobile browsers back to the wallet after
action
---
packages/ui/src/app/utils/url-strategy-helpers.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/ui/src/app/utils/url-strategy-helpers.ts b/packages/ui/src/app/utils/url-strategy-helpers.ts
index 7e4d3039..f803e171 100644
--- a/packages/ui/src/app/utils/url-strategy-helpers.ts
+++ b/packages/ui/src/app/utils/url-strategy-helpers.ts
@@ -104,7 +104,9 @@ export function redirectToTelegram(
if (isOS('ios', 'android')) {
// Use the `none` strategy. TON Space should do nothing after the user action.
- options.returnStrategy = 'none';
+ // TODO: do it more elegant
+ // options.returnStrategy = 'none';
+ options.returnStrategy = location.href as ReturnStrategy;
openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options.returnStrategy));
} else if (isOS('macos', 'windows', 'linux')) {