Fixed link to parent WP in the WP table

https://www.openproject.org/work_packages/14707
@myabc @hschink I have added a simple test for the links. Do you have any comments or ideas on some more tests that could be added to this PR?