Fix #8250, relationship links not pointing to correct target