Developer forum

Forum » Ecommerce - Standard features » Default language issue (with AzureSD SSO for Admin)

Default language issue (with AzureSD SSO for Admin)

Jon Thorne
Jon Thorne
Reply

When we login using Azure AD SSO. The selected language is English and everything seems to work fine.

When this logout/kickoff occurs they log back in using SSO and the language is then mixed. English and Danish (like no specific language selected).

This is happening on 2 sites so far where we use MS AzureAD to login.

Very easy to reproduce.
- First login no problem.
- After forced logout/kicked out (like restart website, change dll, update settings)
- Logout redirects back to login screen. (login screen shows English selected by default - also English is the only available language)
- Login again.
- Then start to see strange language combinations (both English and Danish?).

- Mostly English menus, but some Danish words.

This is a great way to start learning another language (clients already know what "Gem" and "Intet valgt" mean now). But not so helpful when they are trying to work.

Tested on DW 9.13.11 and 9.14.3

Any ideas on how to fix this would be very helpful.

 

Screenshot_2022-11-14_at_8.16.12_pm.png

Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

This is an old thread, but we have a Customer in the similar situation in 9.17.11. 

  • They use SSO to log into the backend
  • They have "English" as the language
  • The backend shows up in a mixed version of Danish and English

https://www.screencast.com/t/auJ3JFS26w

Any ideas on how to fix it?

 

Best Regards,

Nuno Aguiar

 
Jon Thorne
Jon Thorne
Reply

Hi Nuno,

The only way I found to fix it was a workaround that is 99% reliable. I modifed the Admin login template and did an automatic redirect on load to force it to choose English as the selected language before login. But you will need to make sure to update this file each time you upgrade the solution.

\Admin\Access\Default.aspx

<script>​ if(window.location.href.indexOf("la=2") < 0) { SetFormPath(2); } </script>

Regards,

Jon.

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Jon,

 

Thanks for the hack.

 

//Nuno

 

You must be logged in to post in the forum