wagtail / wagtail-localize

Translation plugin for Wagtail CMS
https://wagtail-localize.org/
Other
227 stars 87 forks source link

Translating pages that include an image don't work #827

Open JeroenJADS opened 1 month ago

JeroenJADS commented 1 month ago

Issue Summary

Upon translating a page from EN to Dutch that has an image uploaded, Wagtail tries to call an url "en/cms/api/main/images/1/", which is called the Images Admin Api but is unauthorized to do so. This in turn leads to an error in wagtail-localize.js since the image can not be found.

Screenshot 2024-10-03 at 8 02 35 AM

Steps to Reproduce

  1. Add a page in the original Wagtail Language
  2. Add an image field and upload any image
  3. Translate the page, select the desired language and hit confirm
  4. The next page will throw the 2 errors above.
  5. The page will load, but the translation editor will have been broken.

Technical details

Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.

zerolab commented 1 month ago

We need a bit more information, like how you've configured your URLs for i18n