Revert "Revert "Only return version url if version exists""

This reverts commit 23767467e6dc152b8c1c309fa07bc12c43f957a1.