Skip to content

Commit

Permalink
Merge pull request #876 from adrienne-deriv/fix-language-callback
Browse files Browse the repository at this point in the history
Patch redirect page language
  • Loading branch information
ahmadtaimoor-deriv authored Dec 10, 2024
2 parents ebd80cd + 3a5ae83 commit 5aab624
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/javascript/app/base/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,10 @@ const Header = (() => {
const isOAuth2Enabled = AuthClient.isOAuth2Enabled();

if (isOAuth2Enabled) {
const redirectCallbackUri = `${window.location.origin}/en/callback`;
const currentLanguage = Language.get();
const redirectCallbackUri = `${window.location.origin}/${currentLanguage}/callback`;
const postLoginRedirectUri = window.location.origin;
const postLogoutRedirectUri = `${window.location.origin}/en/trading`;
const postLogoutRedirectUri = `${window.location.origin}/${currentLanguage}/trading`;
// Test commit
await requestOidcAuthentication({
redirectCallbackUri,
Expand Down

0 comments on commit 5aab624

Please sign in to comment.