I've been trying to get Ajax to download a file being saved on the server using the answer used here.
The only difference is that my application is a single page app.
The problem that I'm having is when we call the method to download the file. The method used above just calls the link to where the file is saved, but in my application, there are no links.
How would I achieve/convert the answer I'm using to work with a single page application?
I've tried window.open(url)
instead of window.location = url
but that would just get me a 404
error.