Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
Wagtail adds `Content-disposition: attachment` to PDF file requests, causing them to be downloaded instead of opening them in the browser window.
Resources:
- https://stackoverflow.com/a/47304529
- https://docs.wagtail.io/en/v2.0.2/reference/hooks.html#document-serving
Steps to reproduce
- Go to https://ampgateway.org
- Click on the pdf link: https://ampgateway.org/documents/1/AMP-Gateway-Workshop-Dec2019-at-NIST.pdf