Files
Gaudenz Alder dfe3f130fb fix(search): rewrite relative image paths in shape results to absolute URLs
1,436 built-in shapes (clip art, Active Directory, ...) carry
editor-relative image paths (image=img/lib/... or image=/img/...) that
only resolve inside the draw.io editor's own origin — in the MCP
viewer iframe or an exported file they render as broken images.
searchShapesWithMeta now rewrites them to https://app.diagrams.net/
(already CSP-whitelisted in the app server) at search time, which also
covers stale CDN-fetched index copies. Absolute and data: URIs are
left untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 15:53:34 +02:00
..