Wikilinks not updated on file rename when part of a Dataview query

Steps to reproduce

  1. Create a Dataview query where a wikilink to an existing file is part of the query.

  1. Rename the linked file.

When doing so, I expect the wikilink to be updated.

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


Expected result

Having the file name in the query updated. Like so:

Actual result

See second screenshot above.

1 Like

That’s because Links inside a code block or an equation are not recognized as links by Obsidian’s parser in the first place, I think. This behavior is helpful almost everywhere, but there are some exceptions like this one.

1 Like

+1 its a big problem

I don’t think this has changed.

Uhm… it might actually kind of have changed, or there is a much better workaround nowadays. I reckon, but haven’t tested yet, that if you put the link in the property:

my_link: "[[Wikilink demo]]"

Then this link will be updated by Obsidian, and it can be referenced using this.my_link in the query.

1 Like

That’s the problem of having a lot of “core” feature as plugin instead, leaving plugin developper the work to re-implement basic feature that work everywhere else, or worse, the possibility to cause damage trying to reimpelment things that might break in the future.

Within anything controlled by plugins, you will find custom styling, custom date formats, custom linking that might or not react the same as the rest of the product.

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