Fix hashed filename when downloading a bundled PDF
Updated Jun 17, 2026 ·
Overview
When a PDF is downloaded from a React or Docusaurus page, the saved filename may include a generated hash.
Example:
Jose Eden-8cfb0a0ef0992e679b77e0160daa4035.pdf
Expected filename:
Jose Eden.pdf
This can happen when the PDF is imported as a bundled asset instead of being referenced as a static file path.