Open rrcobb opened 5 years ago
It looks like the issue happens when the html being tested attempts to link to a hash in a file that does not exist:
<a href="/file/that/does/not/exist.md#hash-link">
gets the panic
while
<a href="/file/that/does/not/exist.md">
finds and warns correctly on the missing file.
Took a bit of work to find the issue, but I think that's the problem
Thanks for the report and investigation!
Does this happen if the linked file is an HTML file rather than markdown?
Ah, we have a (slightly crazy) naming hack in a Hugo app. It's serving html, though the url suggests otherwise.
Context: the hack is in place so that we can build a version of a site that maps 1:1 between a github repo and the site that is built from that content, with the links still working. It's not a pretty answer, but it is sort of working.
The page served at /file/that/does/exist.md
is an html page.
results in
Not sure what is leading to the fault, or what I can do to fix it. Let me know if there is other debug info that might be useful!