Not all backlinks are listed

Bug report

Noticed this today: Only links to other notes that have their exact name in the label show up as backlinks.
eg. only [note title](inkdrop://note:abc123) will get a backlink at the top of note abc123 while [](inkdrop://note:abc123) will not.

Environment

  • Platform: macOS

  • Platform version: Ventura 13.7.8

  • App Version: 5.11.6

  • Disabled all third party plugins just in case

  • No errors found in console

How to reproduce

  1. Created note titled note 1
  2. Created note titled note 2
  3. linked note 1 on note 2 like [](inkdrop://note:note1Id)
  4. Notice no notes are listed under Linked to this note (the backlinks section) on note 1
  5. Update the link’s label so it matches the referenced note’s name, like [note 1](inkdrop://note:note1Id) then the link will show up

Screenshots for reference



that’s it :slight_smile:

thank you Takuya!

Gael

Hi @picklecillo ,

Thanks for reporting.

First, the URI format inkdrop://note:note1Id is incorrect.
It should be inkdrop://note/note1Id, where : should be /.
Can you try fixing them?

Hey @craftzdog

Tried it. It still does not show up unless I also add note’s name on the label

Weird, because the app searches with the note id, not with the note title.
So, [](inkdrop://note/Nipq4102) should work here.

I tried to reproduce it, but it works fine for me both on v5 and v6 :thinking:

Tried again and I can no longer reproduce the issue ??? Guess i’m going insane :sweat_smile:

hmmm

heey (slightly unrelated)

Went to fix this plugin so it embeds the right URI, turns out i’m using the note ID i get from calling createId. I have not found a way to get the URI, except for just building the string myself ie. replacing the : with /. My question is: any chance you’d provide something to get the URI from or maybe you’d be open to making IDs and URI paths match?

thanks!

You can create a URI this way:

const noteURI = `inkdrop://note/${noteId.substring(5)}`

I’m not planning to change it.