I'm trying to open a link (from a Blazor server app) to a pdf in a new tab but with no success. The pdf isn't downloading and don't know why...is should be that simple.
Tryied different solutions. This is the code used for jsruntime solution. The other is a simple "a" tag link
await JSRuntime.InvokeAsync<object>("open", url, "_blank");
Opening a simple link is working but opening a link that downloads a pdf isn't. It's a link to a ReportingServices server with the parameter "Format=PDF".
The link is as follows: myserverURL/ReportServer/Pages/ReportViewer.aspx?%2fReportTools%2fMYREPORTNAME&rs:Format=PDF
I've saw that people are having same issue with pdfs. Open PDF in new Tab - Blazor
Does anyone know what I'm doing wrong or have a solution to this?