Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendered node with click _blank interaction does not open link in new tab #5550

Open
chrycheng opened this issue May 30, 2024 · 0 comments
Open
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@chrycheng
Copy link

Description

The graph produced by the following input is supposed to have a node which when clicked should cause the browser to open the associated link in a new tab. The link does open but it's in the same tab that's currently displaying the graph.

graph
a
click a "https://www.google.com" _blank

Steps to reproduce

  1. Save the Mermaid code in the Description into a file
  2. Render it into an SVG (e.g.,. mmdc -e svg -i in.mmd)
  3. Open the output SVG in a browser
  4. Click on the a node
  5. Observe that https://www.google.com opens in the same tab displaying the SVG

Screenshots

No response

Code Sample

graph
a
click a "https://www.google.com" _blank

Setup

  • Mermaid version: 10.9.1
  • Browser and Version: Edge 125.0.2535.51

Suggested Solutions

No response

Additional Context

No response

@chrycheng chrycheng added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant