diff --git a/package-lock.json b/package-lock.json index 4bfa82df5..e9ef499a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.22.1", + "version": "1.22.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.22.1", + "version": "1.22.2", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 36ca027eb..ad1ad70de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.22.1", + "version": "1.22.2", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", 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 = () => {