I am trying to figure out if this is a bug or not. I think it is.
I have a template that I can reuse that filters all the notes that link to the current filename in a specific property. It works like this:
filters:
and:
- or:
- note.area.contains(link(this.file.name))
- note.area.contains(link(this.file.name.replace('.base', '')))
This is great because I can reuse that template, say my file its called “creative” it will bring all the notes that have area creative, and I can use the same template for other files without hard-coding the value.
Problem is when I embed this creative.base into a different note, then this.file.name becomes the note that contains the embed, and not the base itself.
Isn’t that a bug? I would expect the embed to keep the original file name that contained the base.
If its not a bug, and you have any workaround for this, without having to hardcore the area, I would appreciate it.