suitenumerique/docs
Error when exporting an image that is embedded with relative URL
Fechada
#1.041 aberto em 3 de jun. de 2025
bugeditorexportfrontendgood first issue
Métricas do repositório
- Stars
- (16.557 estrelas)
- Métricas de merge de PR
- (Mesclagem média 15d 9h) (40 fundiu PRs em 30d)
Description
How to Reproduce?
- Create document
- Add an image, by embedding a relative file url eg.
/assets/favicon-light.png
- Is displayed correctly
- But when exported, causes Cors error
Why would you want to embed relative image URLs?
- Future Tutorial Document needs it for example.
- And maybe in some infrastructure you could have file serving on the same domain.
Ways to fix
No need for relative images to be proxied. No cors issue would occur.
So if image url starts with a / - export the image directly, without routing through cors proxy.