Browsers are very eager to open pdf's for their users, but this behavior does not really fit with the kinds of PDF's that OF generates, which are definitely more of the kind you would want to actually save on your disk.
Since the user loses the ability to download the pdf again after the session is gone, the
"Download PDF" should force a actual download of the PDF via the "download" attribute which seems to be supported by all modern browsers.
[x] Set up proper URL without exposing API endpoint details
[x] Add Content-Disposition headers to force download
Thema / Theme
Frontend
Omschrijving / Description
Browsers are very eager to open pdf's for their users, but this behavior does not really fit with the kinds of PDF's that OF generates, which are definitely more of the kind you would want to actually save on your disk.
Since the user loses the ability to download the pdf again after the session is gone, the "Download PDF" should force a actual download of the PDF via the "download" attribute which seems to be supported by all modern browsers.