Thanks
yes
Hi,
the problem (the last one reported in Azure Front Door) is resolved, the solution is here (#6 Overwrite ‘Host’ server variable on Windows IIS Web Apps, with applicationHost.xdt and Web.config): https://www.patrickob.com/2022/04/06/azure-front-door-afd-app-gateway-app-service-unexpected-issues/
Therefore, we no longer need to modify the request header.
thank you, Dirceu
Hi,
We already change to Azure Front Door and now we can change the language but when we call the method https://plano-mais-cuf-api-dev.sistemasaude.pt/AbpUserConfiguration/GetAll?d=1709222850822 is not returning the tenant id so regardless of the address it is always redirecting to the host: Host = https://host-dev.sistemasaude.pt Tenant 1 (default) - https://default-dev.sistemasaude.pt Tenant 2 (plano-mais-cuf) - https://plano-mais-cuf-dev.sistemasaude.pt
in the development environment (with azure front door):
in the UAT environment (with Gateway) - https://plano-mais-cuf-api-uat.sistemasaude.pt/AbpUserConfiguration/GetAll?d=1709223616322:
Do you have any tips on what could be causing this as this problem did not occur when using the Gateway? Both environments are equal in terms of code deployed and databases are also equal.
best regards, Dirceu
Hi,
Thanks. Is it possible to access your solution somehow ? It would be nice for us to test this using your project.
The source code? i've been testing localy We are currently changing the Azure environment to use Azure Front Door instead of Application Gateway. After testing (If the tests run successfully), it may no longer be necessary to modify the name of the request header ".AspNetCore.Culture" - We can wait and see if it works.
Hi @ESTeam
Just to be sure, you only have this problem for the not loggedin users, is that correct ?
Hi,
I've tested again now and after the login it only works if i open a new private window in the browser (Edge) - In chrome never works (even if you open a new incognito window). Before login never works.
Hi,
In that case, you can change the cookie name in
language-switch.component.ts
Hi,
I tried one of 2 things and neither of them worked on the login page (after doing the login both solutions worked):
I also tried changing the cookie whenever I send the language in the request header but it didn't work on the login page either:
The 2 cookies are with the "en" culture but the site remains in "pt-PT":
The request header is also in "en":
best regards, Dirceu