-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
-
Fix Version/s: 7.0.0 DXP FP89, 7.0.10.13 DXP SP13, 7.0.X, 7.1.10 DXP FP16, 7.1.X, 7.2.10 DXP FP3, 7.2.1 CE GA2, 7.2.X, 7.3.10 DXP GA1, Master
-
Component/s: ~[Archived] WCM
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
This bug is caused by LPS-78738
In case you open a URL with a underscore-languageId (es_ES), a permanent redirect is returned with a dash-languageId (es-ES)
But the redirect generated in I18nServlet is ignoring non-empty contexts.
Steps to reproduce
- Configure Liferay with a non empty context, for example: myContext
- Opening URL: http://localhost:8080/myContext/es_ES
- Expected behavior: Liferay returns a permanent redirect to http://localhost:8080/myContext/es-ES
- Wrong behavior: Liferay returns a permanent redirect to http://localhost:8080/es-ES , without context
- Expected behavior: Liferay returns a permanent redirect to http://localhost:8080/myContext/es-ES
- is caused by
-
LPS-78738 Replace the use of "_" with "-" in the locale of the URLs (SEO improvement)
- Closed
- relates
-
LPS-104142 Create test for redirect URL with underscore-languageId with non empty context
-
- Closed
-