Details
-
Story
-
Status: Closed
-
Minor
-
Resolution: Completed
-
None
-
6.2.x
-
Committed
Description
Currently if you want to change "I18n Servlet" configuration about its url-mapping you have to edit "web.xml" descriptor.
For example, if you want to disable some languages you have to comment corresponding lines in "web.xml":
<!--servlet-mapping>
<servlet-name>I18n Servlet</servlet-name>
<url-pattern>/ar/*</url-pattern>
</servlet-mapping-->
If afterwards you apply a patch, with patching-tool, you may lost those changes and will need applying again.
It could be interesting to allow declaring some properties (or similar) that overwrite that part of web.xml's configuration instead of having to edit it.
Steps to reproduce:
- Go to control panel -> Portal Settings -->Displlay Settings and change the current locales so there are only two: English and Spanish
- Access this page: http:/localhost:8080/pt_BR/web/guest
Portal redirects to default language (/web/guest).
After the fix, adding
locale.use.default.if.not.available=false
the same page will return a 404 -Not found error
Attachments
Issue Links
- relates
-
LPE-14372 I18n Servlet - Add an option for making enabled/disabled url-patterns
-
- Closed
-
-
LPS-134429 Reverse behavior of portal property locale.use.default.if.not.available
- Verified
-
LPS-57866 No available languages for a site should return an HTTP 404 error
-
- Completed
-