Backport metadata link validation

Backport of #627 which was merge more than a month ago.