Embed by heading displays incorrect content if two headings in the note are the same

Steps to reproduce

To reproduce:

  1. Create new note with this content:

Heading 1

Week 1

Heading 1 Week 1 text

Heading 2

Week 1

Heading 2 Week 1 text

  1. Create another new note
  2. In the new note, attempt to embed by header the second Week 1 header ![[filename#Week 1]]

The content that displays is that of the first “Week 1” header even though both display in the drop down while typing in the header in the embed link.

This was reproduced in the sandbox vault.


Did you follow the troubleshooting guide? [Y/N] Y

Expected result

To see the actual content under the header I chose, the second Week 1 heading in the example above, rather than the content of the header further up the note with the same name.

Actual result

The incorrect content is displayed; I’m only able to embed content from the first header of that name in a note or I have to change the name of the second heading or separate it out to a different note, neither of which is ideal.


Obsidian version: v1.3.5
Installer version: v1.3.4
Operating system: Windows 10 Education 10.0.19045
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

Please fix!

Additional information

You may be interested in this feature request: Insert precise heading links when there are duplicate headings in a note


Try ![[Note name#Heading 2#Week 1]] for the time being.


1 Like

Thank you VERY much! This works for now and thank goodness!
Greatly appreciated!
I like standardizing things and this was going to be a huge problem for me.
I’ve just started using Obsidian more heavily and was like, “oh, oh dear, reaaaallly wish I woulda known about this sooner…”

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.