-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
Relative links in HTTP+HTML mode seem to not originate from current directory #9
Comments
I cannot reproduce this, can you show me a real-world example? My test file ( <!doctype html>
<html>
<body>
<a href="../text/utf-8.txt">../text/utf-8.txt</a>
<a href="/text/utf-8.txt">/text/utf-8.txt</a>
</body>
</html> Both links resolve to the same file, both served via gemini and http |
Sorry I'm late with my reply, I have now put up an example on a page of mine. This link does work as expected: https://tilde.ism.rocks/~waweic/kristall-relative-link-testbed/ (This one has a trailing /) |
Hm, i still cannot reproduce this. Both links work as expected. The first one (trailing |
The server is not redirecting me. It just delivers the page without the trailing Clicking the link on that website is what only works for me on the page with the trailing |
Please check your redirection settings. Visiting
Which is obviously a redirection, whereas visiting
which is the site you're talking about. Kristall is following redirections by default, but you can change this behaviour in the settings |
Sorry. My fault. When I discovered that behaviour, I was using an older version that didn't implement redirections, apparently. I built it from master again, now it's working |
No worries. It would've been my next question, but bugs can happen everywhere! |
Current URI: "http://example.com/somedirectory"
Href attribute of clicked link: "somesite.html"
URI kristall is trying to access: "http://example.com/somesite.html"
Expected URI: "http://example.com/somedirectory/somesite.html"
Update:
When the current URI has either a "/" or a filename at the end, it does seem to work. The current problem seems to be the name of the folder that does not end with a "/"
The text was updated successfully, but these errors were encountered: