Linking to Confluence text anchors by default opens up a new tab, not staying on existing window

Open
#5,622 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
frontend

Research direction

Reproduce the issue in draw.io for Confluence Cloud 30.0.1 by creating and opening a text-anchor link with link behavior set to Automatic. The issue names no source files or tests, so trace the link-handling entry point from that reproduction; done means the existing window remains open and navigates to the linked header.

Written by the indexing model from the issue text.

Description

bastiano bug needs-info
Preflight Checklist
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must search the issue tracker and agree to the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug
If I provide a link to a text anchor in draw.io for Confluence (Cloud) it opens up a new window. My setting for links is always "Automatic" because text anchor links used to function within the same window. Not it seems like it switched to "Open in New window". I manually changed the settings to "Open in This Window" but I wanted you to know that there might be a bug somewhere. Would be great if the default linking behavior for text anchors would go back to "Open in This Window" again.

To Reproduce
Steps to reproduce the behavior:

  1. Insert a text anchor link in a draw.io diagram in Confluence Cloud
  2. Click on the link
  3. New window opens and it doesn't jump to the text anchor

Expected behavior
Stay inside the existing window and jump to the header that was linked when haveing "Automatic" link behavior active.

Screenshots
It is hard to provide a screenshot for this behavior.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 30.0.1 for Confluence Cloud

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Browser Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

Additional context
Add any other context about the problem here.

Dominant language
JavaScript
Stars
9.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jgraph/drawio

All issues in jgraph/drawio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.