I have a hundred pages (all written by me) on our confluence. Yesterday, I was browsing through some of the old pages and found that almost no link is working in them. Every time I click a link (that's supposed to take me to a heading on the same page), the page opens in Edit mode or doesn't respond at all. (I'm absolutely sure, I've tested every such link (I still do) when I wrote those documents originally and ensured they are working, before I published them).
Now, when I open them in edit mode, I notice, the links have mysteriously turned into Page Name#MyHeading (the same page name is inserted before the #). Originally they were just #MyHeading. Its just astonishing how they became Page Name#MyHeading on their own (no one edited them after being published).
And now, when I try to fix the links by removing the Page Name part, only some of the links work, not all.
Any solution to fix all those links in all those hundred pages?