-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 7.0.0 DXP FP32, 7.0.X, Master
-
Fix Version/s: None
-
Component/s: Portal Services > Localization, WCM, WCM > Tags
-
Labels:
-
Fix Priority:4
Reproduction Steps:
1.In your portal-ext.properties file, set up these properties:
locales=fi_FI,en_US
locales.enabled=fi_FI,en_US
company.default.locale=fi_FI
locale.prepend.friendly.url.style=0
2. Start the portal and create a new page:
Page name can be: test1
Click "Add Page"
3. Configure the page to have an English and a Finnish friendly url by clicking on the 3 dots next to the page name (test1), and then select: "Configure Page"
In the "Friendly URL" section, you can define the language specific page names by entering this for example:
- click on the Finnish icon:
the "http://localhost:8080/web/guest" part is pre-filled, you just have to type: "/fitest" - click on the English icon:
the "http://localhost:8080/web/guest" part is pre-filled, you just have to type: "/entest"
4. Visit the fitest page and:
4.1 Type "en" in front of the "/web/guest/fitest" in the url, so it will become:
http://localhost:8080/en/web/guest/fitest
The portal will redirect to:
http://localhost:8080/web/guest/entest
4.2 Type "fi" in front of the "/web/guest/entest" in the url, so it will become:
http://localhost:8080/fi/web/guest/entest
The portal will redirect to:
http://localhost:8080/web/guest/fitest
4.3 Again, type "en" in front of the "/web/guest/fitest" in the url, so it will become:
http://localhost:8080/en/web/guest/fitest
This time, the portal will not redirect, it will stay on the English page, unless you clear out your browser's cache.
Expected Behavior:
the portal should redirect to the English version of the page.
Note:
redirection works when setting:
locale.prepend.friendly.url.style=2
This issue might be strongly related to:
https://issues.liferay.com/browse/LPS-41660
Tested on @7ec41e78919881825475eb770b8922a01bfafeba
- is related to
-
LPS-41660 Legacy Friendly URL's redirects to friendly URL with locale
- Closed