=> Re: "Server best practices for routing and relative links" | In: s/Gemini
The way your examples resolved the first segment that starts with a tilde confused me.
AFAIR tilde is not any different than other alphabetic characters. I would expect ~foo
to resolve like ./~foo
, not like /~foo
.
Shells or servers may interpret them specially, but for path resolution it shouldn't matter.
=> ๐ sy
Jan 05 ยท 4 weeks ago
=> ๐ sy ยท Jan 07 at 07:04:
@skyjake: I think Lagrange should not be platform dependent when parsing gemtext. Is this a bug?
=> โ absolute url check in Lagrange | โ tilde check in the_Foundation
Server best practices for routing and relative links โ I'm writing a gemini server and ran into some gotchas when it comes to relative linking from within gemtext. The server will route gemini requests to paths on the filesystem. i.e. a url "index.gmi" would route to a file named "index.gmi" As a convenience, the server will also resolve requests that correspond to a directory on the filesystem iff the directory contains a file named "index.gmi" Let's say there's a file at the subpath ~subspace/...
=> ๐ฌ bjnaved ยท 13 comments ยท 2024-12-16 ยท 7 weeks ago This content has been proxied by September (3851b).Proxy Information
text/gemini; charset=utf-8