-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My Business Requirements is that downloads do not trigger a new tab to open. #797
Comments
I have the exact same doubt. I also replaced FileSaver.js with direct a[download] that does not trigger a new tab: const downloadLink = document.createElement('a');
downloadLink.href = downloadUrl;
document.body.appendChild(downloadLink);
downloadLink.click();
document.body.removeChild(downloadLink); Looking at the source code it, when CORS is not enabled and adds |
If the download fails and you aren't using |
When I download a signed download link, it will open a new tab and then quickly close it before downloading. I find it strange. Is there any way to trigger the download in the current tab?
I have to use the following code for substitution:
Is there any configuration that can be operated?
The text was updated successfully, but these errors were encountered: