Redirect the site root url to its language root folder
Environment: Plone 4.3.4.1, plone.app.multilingual 2.0.0 (from github)
I have two Plone sites, both with pam enabled, but they act differently when visiting their root url of their site. Let's say visit http://www.site1.com/ will be redirected to http://www.site1.com/zh , that's what I need. But http://www.site2.com/ will show its list of items, I want it to redirect to http://www.site2.com/zh . See image below for reference.
How do I enable automatic redirection to one of its language root folders? Hints are appreciated.
Edit after comment and answer :
Ulrich and Mathias are good for hints. Here are a few more details. First, when I select "Chinese" as my default site language, there is no "language switcher" in the "Display" menu.
When I select "English" as my default site language, I can see and select "Language Switcher" from the "Display" menu. Everything works as expected.
source to share
As Ulrich mentioned, you can define language-switcher
View as the default view for the root plone. This will automatically redirect you to the correct language folder.
More information: https://github.com/plone/plone.app.multilingual/blob/2.x/src/plone/app/multilingual/browser/switcher.py
If you are installing a multilingual site, the default page for the plone root needs to be configured correctly: Check LanguageSetup: https://github.com/plone/plone.app.multilingual/blob/2.x/src/plone/app/multilingual /browser/setup.py#L245 p>
source to share