Comments (7)
I cannot reproduce this, can you show me a real-world example?
My test file (/html/rel.htm
) is:
<!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
from kristall.
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 /)
This link does not: https://tilde.ism.rocks/~waweic/kristall-relative-link-testbed
from kristall.
Hm, i still cannot reproduce this. Both links work as expected. The first one (trailing /
) will yield the index site directly, the other one will react to the redirect from the server and will also land on the site with the trailing /
from kristall.
The server is not redirecting me. It just delivers the page without the trailing /
to the browser. When I access the URL from the second link, the address bar does not have a trailing /
in it.
Clicking the link on that website is what only works for me on the page with the trailing /
from kristall.
Please check your redirection settings. Visiting https://tilde.ism.rocks/~waweic/kristall-relative-link-testbed
yields
HTTP/2 301
server: nginx/1.14.0 (Ubuntu)
date: Fri, 03 Jul 2020 08:12:37 GMT
content-type: text/html
content-length: 194
location: https://tilde.ism.rocks/~waweic/kristall-relative-link-testbed/
content-security-policy: default-src 'self'; script-src 'none';
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.14.0 (Ubuntu)</center>
</body>
</html>
Which is obviously a redirection, whereas visiting https://tilde.ism.rocks/~waweic/kristall-relative-link-testbed/
yields
HTTP/2 200
server: nginx/1.14.0 (Ubuntu)
date: Fri, 03 Jul 2020 08:13:39 GMT
content-type: text/html; charset=UTF-8
content-length: 92
last-modified: Wed, 01 Jul 2020 11:09:06 GMT
etag: "5efc6ed2-5c"
content-security-policy: default-src 'self'; script-src 'none';
accept-ranges: bytes
<html>
<body>
<a href="site-next-to-index.html">site-next-to-index.html</a>
</body>
</html>
which is the site you're talking about. Kristall is following redirections by default, but you can change this behaviour in the settings
from kristall.
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
from kristall.
No worries. It would've been my next question, but bugs can happen everywhere!
from kristall.
Related Issues (20)
- Bug: "Line is too short for valid protocol" HOT 1
- Support small screens HOT 2
- Icons not visible to the left of the URL bar. HOT 1
- Optimisation for opening large documents.
- qt5-tools needed on Arch Linux
- kristall -v option doesn't have a version when built outside a git repo HOT 3
- Error when clicking on unicode/punycode links
- Apple Mac ARM build? HOT 1
- Bug in manpage creation using dash HOT 7
- Ability to center all headers
- CMake support: HOT 1
- Update Search Engines list HOT 1
- Ability to set indentation of the first line of paragraph
- gopher "go to parent" renders parent as raw text - no links | bug | nightly build | osx HOT 2
- Indicate bundled dependencies and their licenses HOT 1
- Add AppData file
- Add install section to CMake file HOT 1
- Default protocol configurable and relative URL mode
- Support subscribing to Gemini feeds
- Wildcard CN certificate errors out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kristall.