nextcloud / collectives

Collectives is a Nextcloud App for activist and community projects to organize together.
GNU Affero General Public License v3.0
87 stars 12 forks source link

Link to website in mermaid node is not working properly #1135

Open AngryNui opened 4 months ago

AngryNui commented 4 months ago

Describe the bug Links in mermaid to external websites won't open when opening .md in collectives. Links in mermaid fail to open new tab when using _blank (also in markdown editor not only in collective).

To Reproduce Steps to reproduce the behavior:

  1. Create collective/.md with a mermaid-codeblock and add
    
    %%{init: {'securityLevel':'loose'}}%%
    flowchart
    Nextcloud --> 2 --> 3 ---> Nextcloud

click Nextcloud href "https://nextcloud.com/" _blank


3. Click on the nextcloud-node in mermaid diagram
4. See no external website will open nor a new tab 
5. Go to filebrowser open .md and click on the nextcloud-node in mermaid diagram
6. See external website will load but won't open in a new tab

**Expected behavior**
open new tab with external website when using `_blank` like described in
[Mermaid Docs](https://mermaid.js.org/syntax/flowchart.html#interaction)

**Server details:**
- Collectives app version: [2.9.2]
- Nextcloud version: [28.0.3]

**Client details:**
 - OS: [Windows]
 - Browser: [Firefox]
 - Browser version: [123.0.1]
 - Device: [desktop]
AngryNui commented 4 months ago

same behavior after update

AngryNui commented 3 months ago

same behavior after update

AngryNui commented 1 week ago

same behavior after update