Construct local link title like internal link title

This fixes the problem that the title of the links that were converted
from internal to local links was constructed using the new (generated)
anchor instead of the original page name.