-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Describe the bug
When using the Insert As Relative Link command, the link to a specific heading (the part after the # symbol) is incorrectly removed. This results in the pasted link only pointing to the file, not the specific section within it, which breaks the intended functionality of an in-file link.
To Reproduce
Steps to reproduce the behavior:
- Create a note with at least one heading (e.g., # My Heading).
- Right-click on the heading and select the "Copy Link Address" option.
- Go to edit mode
- Right-click and choose "Paste" and "Insert As Relative Link."
- Observe the resulting link.
Expected behavior
The pasted link should be a relative link that includes the heading anchor.
For example, if the original link was FileName#My-Heading, the pasted link should remain [My Heading](FileName#My-Heading) to correctly point to the heading.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Version: 3.19.2
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels