Problem with crawling lang URLs by Googlebot (Codemix)

hi,

I have a problem with crawling lang URLs by Googlebot.

In search console it says - too many redirects. When I examine URL with lang prefix - it’s never in google search. When I sugest this URL for crawling it gets error and can’t be crawled - only URLs without lang prefix can be sugested for crawling.

I use Codemix localeurls.

When I curl the url with Googlebot I get a redirect loop like this below.

Can you tell me how to solve this?

Cheers,
Luke

curl -I -L -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://www.lilio.eu/de/produkte/weihnachtskugeln/verzierte-weihnachtskugeln

HTTP/2 301
server: nginx
date: Thu, 10 Apr 2025 13:41:19 GMT
content-type: text/html; charset=UTF-8
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
set-cookie: PHPSESSID=vqdfek7h0tu0bf21v9333a8etl; path=/; HttpOnly
set-cookie: isAdsBanner=no; expires=Thu, 24 Apr 2025 13:41:19 GMT; Max-Age=1209600; path=/
set-cookie: isCartBanner=no; expires=Thu, 24 Apr 2025 13:41:19 GMT; Max-Age=1209600; path=/
set-cookie: _language=de; expires=Sat, 10 May 2025 13:41:18 GMT; Max-Age=2591999; path=/; HttpOnly; SameSite=Lax
set-cookie: _csrf=Vkn3ccI-dz3t5I32ESvhYgItTeTVmc0C; path=/; HttpOnly; SameSite=Lax
location: https://www.lilio.eu/de/ajax/core/change?lang=de&url=produkte%2Fweihnachtskugeln%2Fverzierte-weihnachtskugeln
cache-control: private, must-revalidate
vary: User-Agent

HTTP/2 301
server: nginx
date: Thu, 10 Apr 2025 13:41:20 GMT
content-type: text/html; charset=UTF-8
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
set-cookie: PHPSESSID=837leh8a4k0lh7i4f79i94t9m3; path=/; HttpOnly
set-cookie: isAdsBanner=no; expires=Thu, 24 Apr 2025 13:41:20 GMT; Max-Age=1209600; path=/
set-cookie: isCartBanner=no; expires=Thu, 24 Apr 2025 13:41:20 GMT; Max-Age=1209600; path=/
set-cookie: _language=de; expires=Sat, 10 May 2025 13:41:19 GMT; Max-Age=2591999; path=/; HttpOnly; SameSite=Lax
set-cookie: _csrf=ey-QcXMpeVlhw2r5gjjn20SyYRYHUFwG; path=/; HttpOnly; SameSite=Lax
location: https://www.lilio.eu/de/ajax/core/change?lang=de&url=ajax%2Fcore%2Fchange
cache-control: private, must-revalidate
vary: User-Agent

and so on ..