Fixed links

Links to same-page anchors were treated as external links.
Merge pull request #11354 from Ore4444/patch-1

Fixed links