Backport metadata link validation

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