[BUGFIX beta] Remove unreachable return in link-to.

Closes #4458.