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