mediawiki-drawio-editor icon indicating copy to clipboard operation
mediawiki-drawio-editor copied to clipboard

Option: Interactive; Hyperlinks not working in Diagrams

Open Davo00 opened this issue 4 years ago • 2 comments

The generated SVG includes with correct links, but it's not clickable and the links don't work. What should I provide for further investifgation of the problem.

Davo00 avatar Jan 17 '21 11:01 Davo00

I have the same problem. Investigating the generated SVG I discovered errors regarding the foreign object tags. All tags within a forignObject tag should be prefixed with xhtml:. Furthermore, the xmlns:xhtml="http://www.w3.org/1999/xhtml" attribute should be set in the <svg>-tag. Read https://stackoverflow.com/questions/45518545/svg-foreignobject-not-showing-on-any-browser-why for further information.

Screenshots before fix: image with fix applied: image

z3rone avatar Jan 18 '21 08:01 z3rone

Thank you for your quick and helpful response, Mate

In my case adding xmlns:xlink="http://www.w3.org/1999/xlink" was helpfull for linking. Is there any way to add your suggestions and the link snippet automatically to each interactive svg?

I'm pretty sure the users wouldn't like the idea of doing it manually and uploading svg some way

Davo00 avatar Jan 21 '21 14:01 Davo00