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
This commit is contained in:
Simon Backx 2023-08-10 14:41:56 +02:00 committed by GitHub
parent a407129546
commit 658f0a65e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.';