correctly generate download href when parameter value = "0"