From 5ce81c770b67d635c56c8dfbd8925c94799f3ded Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Wed, 24 Dec 2025 16:27:37 +0530 Subject: [PATCH 1/2] fix: refactor handleDashboardLogout to use getUrlWithSearchParams for URL construction --- src/Common/API/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Common/API/utils.ts b/src/Common/API/utils.ts index 7d30db314..48a9451e6 100644 --- a/src/Common/API/utils.ts +++ b/src/Common/API/utils.ts @@ -17,6 +17,7 @@ import { MutableRefObject } from 'react' import { URLS } from '@Common/Constants' +import { getUrlWithSearchParams } from '@Common/Helper' import { ServerErrors } from '@Common/ServerError' import { RESPONSE_MESSAGES } from './constants' @@ -62,7 +63,9 @@ export const getIsRequestAborted = (error) => export const handleDashboardLogout = () => { const continueParam = `${window.location.pathname.replace(window.__BASE_URL__, '')}${window.location.search}` - window.location.href = `${window.location.origin}${window.__BASE_URL__}${URLS.LOGIN_SSO}?continue=${continueParam}` + window.location.href = getUrlWithSearchParams(`${window.location.origin}${window.__BASE_URL__}${URLS.LOGIN_SSO}`, { + continue: continueParam, + }) } export const handleRedirectToLicenseActivation = () => { From c494889fdfec1472f6b42a731b594b6166821c93 Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Wed, 24 Dec 2025 16:35:43 +0530 Subject: [PATCH 2/2] chore: update version to 1.21.2 in package.json and package-lock.json --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f4bb8517d..5de4cd9cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.21.1", + "version": "1.21.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.21.1", + "version": "1.21.2", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index e3506004c..fdc749cbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.21.1", + "version": "1.21.2", "description": "Supporting common component library", "type": "module", "main": "dist/index.js",