Description
Incorrect link generated for article in other language.
Prereq.: Preprare Studio clean installation with tag 1.7.0.
Steps:
1. In Admin panel add new language e.g. 'en'.
2. Add it as second language to the default siteaccess:
site:
languages:
- eng-GB
- en
3. Clear sever cache.
4. Clear browser cache.
5. Go to Content / Content structure.
6. Click Create.
7. Choose Article.
8. Switch language to 'en'.
9. Fill mandatory fields.
10. Publish.
11. Go to Page.
Actual: "Cannot load content data" error occurs, link with 'eng-GB' is used (screenshot 1)
Expected: Studio loads w/o errors, link with 'en' is used.
Flow 2:
1. In Admin panel add new language e.g. 'en'. (redundant after flow 1)
2. Add it as first language to the default siteaccess:
site:
languages:
- en
- eng-GB
3. Clear sever cache.
4. Clear browser cache.
5. Go to Content / Content structure.
6. Click Create. (article from flow 1 can be used)
7. Choose Article.
8. Switch language to 'en'.
9. Fill mandatory fields.
10. Publish.
11. Go to Page.
12. Go to Content.
Actual: "Failed to load the content /api/ezp/v2/content/objects/58" error occurs, link with 'eng-GB' is used (screenshot 2)
Expected: Platform loads w/o errors, link with 'en' is used.
Attachments
Issue Links
- discovered while testing
-
EZEE-1324 "Cannot read property '_href' of undefined" error generated when accessing a content in a language not specified in the .yml settings
- Closed