From 04e8b01be9d4be205543ec87c94f81c5e62e10ee Mon Sep 17 00:00:00 2001 From: Ciprian Draghici Date: Thu, 14 Mar 2024 19:36:29 +0200 Subject: [PATCH] 2.29.0-beta.6 (#1080) * Tm/feature/cross-window-2FA-signing (#1077) * Added guard cancel action * 2.29.0-beta.5 * Update CHANGELOG * Fix web wallet URL construction on logout action (#1079) * fix web wallet url construction on logout action * update changelog * 2.29.0-beta.6 * update changelog * merge main --------- Co-authored-by: Tudor Morar --- CHANGELOG.md | 3 +++ package.json | 2 +- src/utils/logout.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 536087e25..750d26f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [[v2.29.0-beta.6]](https://github.com/multiversx/mx-sdk-dapp/pull/1080)] - 2024-03-14 +- [Fix web wallet URL construction on logout action](https://github.com/multiversx/mx-sdk-dapp/pull/1079) + ## [[v2.29.0-beta.5]](https://github.com/multiversx/mx-sdk-dapp/pull/1078)] - 2024-03-14 - [Added 2FA signing cancel action](https://github.com/multiversx/mx-sdk-dapp/pull/1077) diff --git a/package.json b/package.json index 0bfb65e86..64e917aff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-dapp", - "version": "2.29.0-beta.5", + "version": "2.29.0-beta.6", "description": "A library to hold the main logic for a dapp on the MultiversX blockchain", "author": "MultiversX", "license": "GPL-3.0-or-later", diff --git a/src/utils/logout.ts b/src/utils/logout.ts index 63709c9bd..2ea81c008 100644 --- a/src/utils/logout.ts +++ b/src/utils/logout.ts @@ -68,7 +68,7 @@ export async function logout( const url = addOriginToLocationPath(callbackUrl); const location = getWindowLocation(); - const callbackPathname = new URL(url).pathname; + const callbackPathname = new URL(decodeURIComponent(url)).pathname; // Prevent page redirect if the logout callbackURL is equal to the current URL // or if is wallet provider