Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JeroenJADS opened this issue Oct 3, 2024 · 1 comment
Open

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

JeroenJADS opened this issue Oct 3, 2024 · 1 comment

Comments

@JeroenJADS
Copy link

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

  • Wagtail 6.2
  • Django version: 5.0.4
  • Browser version: Chrome 129.

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

@zerolab
Copy link
Collaborator

zerolab commented Oct 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants