When renaming a note [[name]] -> [[new_name]], internal links to the note usually update automatically.
This does not seem to hold if the link is in the YAML header, i.e.
---
up: [[name]]
---
does not automatically update when I rename the note in my Vault.
Am I missing some configuration or misusing YAML?
In your example, you wouldn’t actually create a wiki link, but a list, that has another list as it’s only element, and that sublist contains the string “name”.
If you want to have links in frontmatter, you could probably try using obsidian URIs, but I doubt that they would get updated automatically either. Maybe there’s some crazy way to do it with templater or other plugins though?
This was only an idea as to how to put links to notes in frontmatter, because wrapping in two brackets doesn’t do that in YAML.
I honestly don’t think there is a recommended way to do it =(
What you could realistically do, is look for a plugin that provides breadcrumb links.
What you could theoretically do is write a plugin, that hooks into the note renaming process, goes through your vault and checks whether the renamed note is referenced in any frontmatter entries and renames them.
I’m also just a user, and not really familiar with the code base, so I don’t know how hard that would be, but I don’t think it’s a realistic solution for you (or me for that matter)
Inline dataview links are automatically updated and breadcrumbs seems to work with them identically.
But this leaves me wondering why leave the option to create breadcrumbs in the YAML header in the first place… just a pitfall for newcomers that later have to rename everything manually? Still have a feeling I’m missing something
My post isn’t the “solution”! I just point to the right syntax, not to a way to solve the auto-update. If there’s any plugin that do that… well, that I don’t know (I know that breadcrumbs use dataview plugin, but I don’t know how it works…)
I just needed to be sure how things work… so, solved it in this sense
Again, this is very confusing for newcomers.
Took me a while to understand why my breadcrumb keep breaking and now I have to manually move the links to inline links.
Decided to use a closing section in each note to add this (breadcrumb info) and links for cross context connections… would be real happy know what other users of breadcrumbs do.