Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,395 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a Component in Blazor that has an anchor tag which opens a new tab as below:
<a href="@($"api URL in here" class="btn btn-primary @(isLoading ? " disabled" : "" )" id="btnDownload" target="_blank"><i class="fa fa-download"></i></a>
The issue I face is as I am already logged in to the application but on the new tab it authenticates me again and download the file correctly but then does not close the tab on completion of the dialog.