There is a bug (or undesirable feature) of anchor links being treated as external links. This results in anchors opening a new tab every time.
After a quick search I've seen other posts stating that this is still occurring in latest versions of Confluence.
Are there any plans to add an alternative behavior here?