...
Does not link to the current page. We tracked the problem down to the base tag which EPiServer seems to output when using friendly URLs.
So we now link to named anchors or same page links using the CurrentPage.LinkURL property. This is far from ideal, but it is a solution. If there is a better one, I would be very interested to know.