Fix invalid URL in permalink in metadata viewer