I have a site with plone.app.multilingual installed and I`d like to use the RelatedItems widget. If I just start typing into the Search Section (keul called it so - About the new Plone 5 "Related Items" widget) everything works as expected. But if I try to narrow the search by using the Explore Section no item is show anymore.
If you would like to reproduce it:
- create a site
- install plone.app.multilingual
- configure 2 languages
- create a page in a language root folder (e.g. start)
- create a folder in this language root folder (e.g. folder1)
- create another page in this subfolder (e.g. folder1/page1)
- edit the first page (start) - go to categorization tab
- type
page1
to relateditems widget => page1 item is displayed - click top left icon of the relateditem widget to select a folder
- select folder1 in your language folder
- it says "no matches" found => but I would expect to see page1 here
I have found out, that in the second case the catalog is called with a wrong path parameter in plone.app.vocabularies - catalog.py:
{u'path': {'query': [u'/testrelateditemswidget/en/en'], 'depth': 1}, 'sort_on': u'sortable_title', 'sort_order': 'ascending'}
There is two times en
in the path.
Now I have no idea what is the source of this problem - is it plone.app.multilingual because it only occurs if it is installed. Or plone.app.vocabulary? Or something else?
tested versions:
plone.app.multilingual 3.0.16 and 4.0.2
plone.app.vocabularies 2.2.3 and 3.0
plone.app.querystring 1.3.14 and 1.3.15
plone.app.content 3.1.1
I hope someone can help.