Refactoring download button logic
Rejects incorrect url in download manager
Merge pull request #3467 from yurydelendik/download-refactor

Refactor download logic