Fix malformation of url if "version" is provided