-
-
Notifications
You must be signed in to change notification settings - Fork 832
Open
Labels
01 type: bug30 needs: triageNew issue that needs confirmation before work beginsNew issue that needs confirmation before work begins
Description
Describe the bug
Error occurred:
Cannot read properties of undefined (reading 'token')To Reproduce
Steps to reproduce the behavior:
- Create a multilingual website.
- Create a content type without the
plone.dublincorebehavior. - Add plone.translatable behavior to content.
- Create an object of that type.
- Set the language on the object (In my case this is done at installation):
obj.language = 'en'- Access the view.
PS: It might be easier to simulate by removing the Document type plone.dublincore behavior.
Expected behavior
It should show the content type view without error.
Software (please complete the following information):
- Volto Version 18.25.0
- Plone Version 6.1.2
Additional context
This error started occurring after: #7125
I believe the line with the problem is:
volto/packages/volto/src/components/theme/AlternateHrefLangs/AlternateHrefLangs.jsx
Line 11 in 4ef468c
| { '@id': content['@id'], language: content.language.token }, |
Metadata
Metadata
Assignees
Labels
01 type: bug30 needs: triageNew issue that needs confirmation before work beginsNew issue that needs confirmation before work begins