Add parent link to block query output, fixes #4176