From bc4964d4ffb39bb5c2fe8ec16dce4851f2e968f8 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 22 May 2023 14:36:59 -0300
Subject: use redirect instead of openFromPopup on qr detection

---
 packages/taler-wallet-webextension/src/NavigationBar.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/NavigationBar.tsx')

diff --git a/packages/taler-wallet-webextension/src/NavigationBar.tsx b/packages/taler-wallet-webextension/src/NavigationBar.tsx
index 2817f3299..8a41ee68e 100644
--- a/packages/taler-wallet-webextension/src/NavigationBar.tsx
+++ b/packages/taler-wallet-webextension/src/NavigationBar.tsx
@@ -59,7 +59,10 @@ function replaceAll(
 ): string {
   let result = pattern;
   for (const v in vars) {
-    result = result.replace(vars[v], !values[v] ? "" : values[v]);
+    result = result.replace(
+      vars[v],
+      !values[v] ? "" : encodeURIComponent(values[v]),
+    );
   }
   return result;
 }
-- 
cgit v1.2.3

