i think the download only works when your url have any extension in the end.
like this - http://webdomain.cmo/examplefile.apk
so the block i showed above will use http://webdomain.cmo/examplefile.apk as a download link and it will split from last / and use examplefile.apk as a file name.
however if this method doesn’t work then use chrome custom tabs or another web viewer with open link as external enabled so it will open a browser to download your file.