Moved the version replacement outside the link.