I have some code that calls a controller in razor view like
<a target="_blank" href='@Url.Action("ViewFile", "Form", new { id = item.Id })'>
<i class="fa fa-download" aria-hidden="true"></i> @item.Title
</a>
The controller action returns a FileContentResult
It all works fine, the only issue is the download causes a tab to quickly open and then close (google chrome).
I need the file to be able to download without the tab opening.