External download link breaks client

Hello, I have a distributed service that process a file and when it finishes provides a download link to my Meteor project, that is in another subdomain.

To get to the download if I place an <A href="anotherdomain.example.com/huge.file">download</A> or a window.location = lnk; (or Router.go for that matter) I get the browser console resetted and a lot of meteor functionality goes down, some times the event listeners stop working at all.

How would a workaround of this would be? I read that I should add ‘download’ attribute to the A tag, but it behaves the same.

Try adding target="_blank" to your link.

1 Like

That worked out perfectly. Thanks!