Query other pages that link to the current page?

I have a site where pages often link to another (mostly via relative markdown links like [some other page]'(/page/other). Is there somehow a way for me to generate a list of pages that link to the current page? I’m ok to replace the relative markdown links with something like {{% relref %}} if that’s needed, but the doc for that shortcode doesn’t mention any way to query what I want.

rename the page and check the errors ( use -verbose and -debug flags)

There are tools in the wild to check it on web sites, ask google.

Sorry, I guess I was unclear. I want to have my theme generate the list automatically for each page. Sort of like a related pages thing, but with an explicit instruction

Sorry, nothing here. I would like to have page maps to outgoing (internal / external) links :wink: