From 658f0a65e61d5b233717b51be775bd9bf7b4a78f Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 10 Aug 2023 14:41:56 +0200 Subject: [PATCH] Fixed Portal temporary donation link saved in browser history (#17677) no issue - When clicking back button in the browser when on the checkout page, will not open Stripe again - Does not open Stripe checkout in peek and pop mode in Arc --- apps/portal/src/components/pages/SupportPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/src/components/pages/SupportPage.js b/apps/portal/src/components/pages/SupportPage.js index 3456fd51b8..a63db3e772 100644 --- a/apps/portal/src/components/pages/SupportPage.js +++ b/apps/portal/src/components/pages/SupportPage.js @@ -19,7 +19,7 @@ const SupportPage = () => { const response = await api.member.checkoutDonation({successUrl, cancelUrl}); if (response.url) { - window.location.assign(response.url); + window.location.replace(response.url); } } catch (err) { const errorMessage = err.message || 'There was an error processing your payment. Please try again.';