<-- back to the mailing list

Should Gemini clients alert users upon redirect?

Sean Conner sean at conman.org

Sat Feb 13 00:09:30 GMT 2021

- - - - - - - - - - - - - - - - - - - 

It was thus said that the Great Sandra Snan once stated:

Revisiting this issue, I want to clarify what my position was and is.
Bogan's case is that you don't want to be doing a bunch of 301s&31s from
unslashed to slashed all day every day.
I agree with that, and my site was definitely borked (both on HTTPS and
Gemini) for being set up to do just that.
Bogan's solution is that you add slashes to links.
I am not onboard with that solution but have now found another solution.
Instead of 301/31, the unslashed versions will now serve the text
directly.
This is what I intended all along, I just could not figure out how to do
it properly because I am secretly really bad at computers^W being
motivated to hack on server stuff.
In the future I might add 301/31 from slashed to unslashed, since that's
the canonical version. That's a project for another day though.
Thanks to everyone for their patience with how messed up my capsule has
been.

There's a semantic difference between a URL that ends with a '/' and onethat doesn't. The one that ends with a '/' is semantically a directory, andto have to add a file per directory to get all URLs to end with a '/' is, inmy opinion, silly. I can see what you are trying to do---skip the silly".gmi" or ".gemini" extension as being part of the URL, but there should bebetter ways of doing that that populating a filesystem with a bunch ofdirectories containing a single file (I may do a proof-of-concept withextensionless files---no, wait! I alreay have that---the individual testsunder the Gemini Client Torture Test!)

Furthermore, if you follow this link, sans a trailing '/':

gemini://gemini.conman.org/test/UCSD-Pascal-source.zip

you'll get a ZIP file. But, add a trailing '/' to that:

gemini://gemini.conman.org/test/UCSD-Pascal-source.zip/

and see what you get (hint: it's not a ZIP file)

-spc