using the version number in url

so the url is now being created according to the version number given in the attribute