javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
499 stars 30 forks source link

🐞 Displaying wrong notre preview #450

Open Valombreuse opened 3 months ago

Valombreuse commented 3 months ago

Hi Jeremy,

Check for existing bug reports before submitting.

Expected Behavior

When enabled, when you hover an icon on a map it should display the preview of the corresponding note.

Current behaviour

When you have multiple notes that have the same name in your vault, the Leaflet displays the preview of the first occurrence it finds in the vault instead of the preview of the rightful note. If you click, you open the correct note though. Only the preview is wrong.

Reproduction

I searched my vault for the first note bearing the same name and the preview displayed is indeed this first note.

Which Operating Systems are you using?

Obsidian Version Check

1.6.5 and 1.5.12

Plugin Version

6.0.5

Confirmation

Possible solution

have the plugin generate a hard link rather than a search ?