replace spaces in download link without encoding entire URL
move replace to inside isset
Merge pull request #7481 from tripflex/fix_downloadlink_spaces

replace spaces in download link without encoding entire URL