craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.21k stars 624 forks source link

Craft3 Images in richtext broken when using multiple sites #1833

Closed virtualize closed 7 years ago

virtualize commented 7 years ago

Description

Inside an entry I insert an image into a richtext field on one site (lets say english), save it, than switch to another site (in my case german), add the same image into the same richtext, save it.

When I switch back to the first site (english), the image is broken. It just contains <figure><img src="%7Basset%3A5%3Aurl%7D" alt=""></figure>. Do I go back to german the image is still there.

I tried many times, even with three sites/languages. The result is always the same:
The image is only left intact in the last site I have saved. In all other sites of this entry it will be shown as broken.

No difference if an image transform is used.
Also no difference if the translation method for this richtext field is "translate for each language" or "translate for each site". If I choose "no translation" it works obviously :)

FYI: The problem already existed before #1804 got fixed

Steps to reproduce

  1. Create 2 sites with 2 languages
  2. Create an Asset Volume.
  3. Create a Entry single type that has a Rich text field
  4. Insert image into entry richtext field, save
  5. Switch to another site/language, insert image, save
  6. The image on the first site/language is now broken

Additional info

virtualize commented 7 years ago

Works now. Thanks a lot!