Version: Liferay 7.4 GA132 / 2025.Q1
Problem description
When a Liferay site has only es_AR enabled, but the instance also enables other Spanish regional locales (es_ES, es_MX), requesting an existing page using one of those disabled regional locales causes an infinite HTTP 301 redirect loop.
The response redirects to the exact same URL that was requested.
Steps to reproduce
-
At instance level, enable
es_AR,es_ES, andes_MX. -
Create or configure a site with only
es_ARenabled. -
Ensure the site has an existing page with friendly URL
/home. -
Request
/es-AR/home→ HTTP 200. -
Request
/es-ES/home→ HTTP 301 withLocation: /es-ES/home. -
Request
/es-MX/home→ Same redirect behavior. -
Disable
es_ESandes_MXat instance level and repeat the request. The infinite redirect loop disappears.
Additional observations
-
Nonexistent pages return HTTP 404, even when requested under
/es-ES/. -
Other language families, such as
en_USorpt_BR, return HTTP 404 when unavailable at site level. -
Re-enabling
es_ESat site level makes/es-ES/homereturn HTTP 200. -
The problem is reproducible with curl without browser cookies.
Expected behavior
When a regional locale is disabled at site level but remains enabled at instance level, the request should be handled gracefully, either by redirecting to an available site locale or returning HTTP 404.
Actual behavior
Liferay responds with HTTP 301 and a Location header pointing to the original URL, creating an infinite redirect loop.
Request
Could you confirm whether this is a known issue, provide its LPD/LPS reference if available, and indicate whether a fix exists in a later release?