Fix redirect URL for locale (without loosing queryparms)
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter (extern) 2025-03-13 08:44:46 +01:00
parent 39c619a837
commit 84a1004977

View File

@ -49,7 +49,7 @@ export class AppCommonEffects {
switchMap((action) => {
return zip(this.userService$.getCurrentUser(),from(this.oauthService$.loadUserProfile())).pipe(
switchMap(([user,userInfo]) => {
if (this.location.path === 'localhost' || user.language === undefined || user.language === this.locale)
if (location.hostname === 'localhost' || user.language === undefined || user.language === this.locale)
{
return of(new appCommonActions.InitUserSuccess(user,userInfo as UserInfo))
}