Closed gcushen closed 5 years ago
Having a similar issue - it works SOME of the time. See attached screenshot for clues.. Was working fine in 0.54, but this is happening in 0.55.4 so seemingly there's still some issue here..
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
In v0.53 and prior versions, the following code would generate a link to the ".bib" file in a page bundle. In v0.55, the resource is found (GetMatch is successful) and the download link is generated (.Permalink and .Content are correct), but the resource link is 404 as Hugo no longer copies the bundled file across to the generated site output.
Code which links to the resource: https://github.com/gcushen/hugo-academic/blob/01114416aaaafd61022c79deca445b1ca8bd70f7/layouts/partials/page_links.html#L32
Example page bundle containing the ".bib" file that no longer appears in the generated site for v0.55: https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/publication/conference-paper
To reproduce, run the above example site in v0.53 and the
publication/conference-paper
page will have a Cite link generated at the top of the page that displays the contents of the bundled*.bib
file when clicked.Then re-run in v0.55 and the "Cite" resource link is still generated, but the link is invalid and leads to 404 error as the bundled file is no longer copied to the output.
See https://discourse.gohugo.io/t/v0-55-404-error-resource-in-bundle-is-found-but-link-is-invalid/18056 See #5846