Links in mermaid diagrams are blocked due to sandbox
Summary
I want to navigate between flows in the wiki but is impossible to open links using mermaid
to redirect to another wiki page
Steps to reproduce
- Open terminal pressin f12
- Click
Im a link
box - Read console output
Blocked opening 'https://gitlab.com/gitlab-org/gitlab/-/issues/353389' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.
Example Project
flowchart LR
A((A. Start)) --> B{Is Loged?}
B -->|Yes| D[Im a link]
B -->|No| E[Im a link]
classDef classLink fill:#1a0dab, color:#ffffff;
click D "https://gitlab.com/gitlab-org/gitlab/-/issues/353389"
click E "https://gitlab.com/gitlab-org/gitlab/-/issues/353389"
D:::classLink
E:::classLink
flowchart LR
A((A. Start)) --> B{Is Loged?}
B -->|Yes| D[Im a link]
B -->|No| E[Im a link]
classDef classLink fill:#1a0dab, color:#ffffff;
click D "https://gitlab.com/gitlab-org/gitlab/-/issues/353389"
click E "https://gitlab.com/gitlab-org/gitlab/-/issues/353389"
D:::classLink
E:::classLink
What is the current bug behavior?
The tab opening is bloqued by allow-popups
directive
What is the expected correct behavior?
The links open in a new tab
Relevant logs and/or screenshots
Blocked opening 'https://gitlab.com/gitlab-org/gitlab/-/issues/353389' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.
Possible fixes
Add allow-popups
directives at least in the same domain?
<iframe sandbox="allow-popups"></iframe>
Edited by Adrian