diff --git a/Client/Pages/Index.razor.cs b/Client/Pages/Index.razor.cs
index 8b95a79..815f118 100644
--- a/Client/Pages/Index.razor.cs
+++ b/Client/Pages/Index.razor.cs
@@ -104,8 +104,7 @@ namespace ShiftScheduler.Client.Pages
var response = await HttpClient.PostAsJsonAsync("api/shift/export_pdf", shiftsWithTransportList);
var bytes = await response.Content.ReadAsByteArrayAsync();
var base64 = Convert.ToBase64String(bytes);
- var fileUrl = $"data:application/octet-stream;base64,{base64}";
- NavigationManager.NavigateTo(fileUrl, true);
+ await JSRuntime.InvokeVoidAsync("downloadFile", $"Schedule {EditYear}-{EditMonth:00}.pdf", "application/pdf", base64);
}
private async Task SaveScheduleToStorage()
diff --git a/Client/wwwroot/index.html b/Client/wwwroot/index.html
index 9dead99..cfa7310 100644
--- a/Client/wwwroot/index.html
+++ b/Client/wwwroot/index.html
@@ -26,6 +26,7 @@
Reload
🗙
+