From 8440f090a697c0e6387104986d787fd3b697debb Mon Sep 17 00:00:00 2001 From: ahmadtaimoor-deriv <129935294+ahmadtaimoor-deriv@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:37:23 +0800 Subject: [PATCH] Revert "Patch redirect page language" --- src/javascript/app/base/header.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/javascript/app/base/header.js b/src/javascript/app/base/header.js index 1e877ce6bf7..a3245f62308 100644 --- a/src/javascript/app/base/header.js +++ b/src/javascript/app/base/header.js @@ -656,10 +656,9 @@ const Header = (() => { const isOAuth2Enabled = AuthClient.isOAuth2Enabled(); if (isOAuth2Enabled) { - const currentLanguage = Language.get(); - const redirectCallbackUri = `${window.location.origin}/${currentLanguage}/callback`; + const redirectCallbackUri = `${window.location.origin}/en/callback`; const postLoginRedirectUri = window.location.origin; - const postLogoutRedirectUri = `${window.location.origin}/${currentLanguage}/trading`; + const postLogoutRedirectUri = `${window.location.origin}/en/trading`; // Test commit await requestOidcAuthentication({ redirectCallbackUri,