We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This was found during #61
There is an edge case when exception was resolved by moving _exception/FOO to wiki/BAR/index.html AND it is a redirect at the same time.
_exception/FOO
wiki/BAR/index.html
While we adjust src and href attributes on regular pages, we do not fix redirect HTML, which produces error by pointing at file one level too deep.
src
href
Example:
/
$ curl https://bafybeiehlicfvvqhauuxyj7ghspu63uv7vlq224aqytcfv5frewve5jxoq.ipfs.dweb.link/wiki/United_States_of_America/ <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="refresh" content="0;url=United_States"></head><body></body></html>
Fix is to tweak url inside of content attr and adjust it the same way we do href
url
content
The text was updated successfully, but these errors were encountered:
fix: redirects converted from _exceptions
ec01bdc
Closes #89
lidel
Successfully merging a pull request may close this issue.
There is an edge case when exception was resolved by moving
_exception/FOO
towiki/BAR/index.html
AND it is a redirect at the same time.While we adjust
src
andhref
attributes on regular pages, we do not fix redirect HTML, which produces error by pointing at file one level too deep.Example:
/
), which breaks relative redirect:Fix is to tweak
url
inside ofcontent
attr and adjust it the same way we dohref
The text was updated successfully, but these errors were encountered: