Opening a pdf link shows page not found #4637
-
I don't know if it's a bug or if I'm doing something wrong (probably, because I think this was resolved in #3337). I'm not able to open pdf links hosted on docusaurus In editing the pdf is opened, but in the build it is not Could someone help me? see: (1) click on the pdf download icon on the following page:
(2) is directed to the page of the pdf file and page not found
In
set download_pdf comes from the .md header. See:
best |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After a build, you probably don't have a file at 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 Docusaurus is not aware of your custom |
Beta Was this translation helpful? Give feedback.
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
folderDocusaurus is not aware of your custom
download_pdf
frontmatter, and won't do anything about it to make the pdf available.