Backporting mods from Divio on Link plugin to get anchors working