Search links by displayed/aliased text.
Hi, I’m trying to filter out some pages that link to a given page, based on how they link to that page. for example, if I have:
- Page A, with the link [[Target Page|A]]
- Page B, with the link [[Target Page|A]]
- Page C, with the link [[Target Page|B]]
Is there a way to query this by both the actual target and the link text? So I can get all pages linking with text A?
Things I have tried
The obvious one I tried was
WHERE contains(field, link("Target Page|A"))
but that just returns all links to the page, regardless of the text.
I also tried going by subsections, so something like changing the link from [[Target Page|A]]
to [[Target Page#A]]
and then using:
WHERE contains(field, link("Target Page#A"))
But that also just didn’t work.
Is there an easy fix here, or does this just not work?
Thanks for anyone’s time and/or help!