vnote icon indicating copy to clipboard operation
vnote copied to clipboard

insert relative reference link just keeps file name and reference part missed.

Open hitanvil opened this issue 8 months ago • 0 comments

Describe the bug insert relative reference link just keeps file name and reference part missed.

To Reproduce Steps to reproduce the behavior:

  1. Create a new note file
  2. Create two first level title Title1 and Title2 in the file
  3. Copy Title1's link address
  4. Under Title2, paste the link by "Insert As Link", set text as full_path.
  5. Click on full_path, focus can go back to Title1
  6. Under Title2, paste the link by "Insert As Relative Link", set text as rel_path
  7. Click on rel_path, focus does not change

Expected behavior It is expected that both full path and rel path can change focus to Title1. The problem dues to when inserting relative link, only file name is kept but #Title1 part are missed. It is shown in below screenshots.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • Version 23H2

Additional context

hitanvil avatar Jun 18 '24 03:06 hitanvil