obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

bug header embed links break file.outlinks

Open xDovos opened this issue 2 years ago • 2 comments

What happened?

Header embed links like ![[link#header]] break the link in file.outlinks. the console still says it is a link with a subpath. the thing that confuses me is that it is the first time that i see the actual header link inside the file.outlinks. as far as i knew it never did that in the past.

Bild_2023-01-18_040355717 Bild_2023-01-18_040724712 Bild_2023-01-18_040748418

it seems that the faulty indentation comes from the minimal theme. if i use another theme the link still doesn't work but it shows it as normal bullet point list without additional space.

DQL

Table without id file.inlinks as Inlinks, file.outlinks as Outlinks
where file.path = this.file.path

JS

No response

Dataview Version

0.5.53

Obsidian Version

1.1.12

OS

Windows

xDovos avatar Jan 18 '23 03:01 xDovos

Oh i found where the issue comes from. it tries to embed the link but because it is an md file it doesn't work. do i only notice it now because i never really used outlinks tables before and it was always like that or is that a new bug? the image shows how an image is embedded by the same table as shown above. it would be preferable if inside the file.outlinks the links are saved with "embed: false" even if it is an embedded link (not sure how the data is saved and thus how doable that is). Bild_2023-01-18_081712165

xDovos avatar Jan 18 '23 07:01 xDovos

This bug also happen for Block embed links like ![[filename^block-id]]

fornewfork avatar Feb 09 '24 15:02 fornewfork