Skip to content

Opening a pdf link shows page not found #4637

Answered by slorber
rafaelrdealmeida asked this question in Q&A
Discussion options

You must be logged in to vote

After a build, you probably don't have a file at website/build/arquivos/2020-04-30-labri-002.pdf

So your host can't serve it, and it defaults to the 404 page of Docusaurus.

How do you ensure that this file is available in the build folder? It is your responsibility to make it available. You can put it in the static folder

Docusaurus is not aware of your custom download_pdf frontmatter, and won't do anything about it to make the pdf available.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rafaelrdealmeida
Comment options

Answer selected by rafaelrdealmeida
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants