Bugzilla 50987: Fixed an issue where a link was added to the parent tree instead of the related structure element. Thanks to Martin Koegler.