💾 Archived View for rawtext.club › ~sloum › geminilist › 005218.gmi captured on 2023-09-08 at 17:26:52. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

Should Gemini clients alert users upon redirect?

Sandra Snan sandra.snan at idiomdrottning.org

Sat Feb 13 21:51:03 GMT 2021

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

Sean wrote:

There's a semantic difference between a URL that ends with a '/' and one
that doesn't. The one that ends with a '/' is semantically a
directory

Yes. That's why I removed the slashes and why I all along wanted theslashes gone.

Sean wrote:

that doesn't. The one that ends with a '/' is semantically a directory, and
to have to add a file per directory to get all URLs to end with a '/' is, in
my 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 be
better ways of doing that that populating a filesystem with a bunch of
directories containing a single file

It seems like you've got what I want to do somewhat backwards.

You seem to think that I want URLs that end with slashes, i.e. hasdirectory semantics.That's what I don't want.That's why my internal links all along have been without slashes.That's why I finally fixed the long-standing 31 issue.

And I needed to do programming to do so which is what I didn't wanna doin the first place. Ugh. You guys roped me in to doing actual work.

The server-side technical implementation behind serving up, for example,"The Dumbphone Experience" text atgemini://idiomdrottning.org/dumbphone-experience

should not matter for users.

As far as they're concerned, that's a leaf node nameddumbphone-experience placed in the capsule root.

That's the semantics I want and that's the semantics I've got now. Jollygood.

(On the server side, I could implement that in a couple of ways; I needthe server to be able to distinguish the page from other files (forexample I also host images, and plain text files) so on the server side,I need to set up a naming scheme like dumbphone-experience.gmi,dumbphone-experience.gemini, or dumbphone-experience/index.gmi and thenuse server rewriting to serve up the correct node.

It's wholly irrelevant on the client side which of those three is in use(I'm not mixing the three models, I use one of them). They get a filenamed dumbphone-experience with the text/gemini MIME type which is whatthey wanted.

Turns out that in order to get different languages for differentpages—which was the first thing I wanted to do on this list back inAugust 2020—and this particular server, it's easier to usedumbphone-experience/index.gmi because then I can also put metadata inthe same directory. Since I needed to reprogram the server anyway, Icould've come up with some cockamamie convention to get per-filemetadata, like dumbphone-experience.gemini anddumbphone-experience.metadata both in the same folder and then servethat as dumbphone-experience. Or have preambles that the server strips.I coulda done it in all tons of ways. Does not matter to clientsidewhich way I did it.)

Sean wrote:

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

You posted the same argument in the same kinda patronizing way lastSeptember:

Sean wrote, but way earlier:

I'm curious as to what the argument against is, because the slash is
semantically important.
=
gemini://gemini.conman.org/test/doc1 This is not a directory.
=
gemini://gemini.conman.org/test/doc1/ And this is not the document you think it is

Semantics is my jam.Do not try to bring the ruckus vs Idiomdrottning on this.

Sean wrote:

And then there's the reason for the tailing slash that Solderpunk gives:
https://lists.orbitalfox.eu/archives/gemini/2020/002000.html

Solderpunk is awesome.♥♥But he is wrong about this.

Solderpunk writes:

It might *seem* dumb, but it's essential for relative URLs to work
correctly.

They work correctly when there is a consistent view which tree nodes areleaf nodes.

Solderpunk writes:

Links in text/gemini may be relative URLs, e.g. just
"other_page.gmi". It's the client's job to turn that into an absolute
URL, in accordance with the RFC rules for doing so. If you are at
"gemini://example.com/foo", then that relative link turns into
"gemini://example.com/other_page.gmi"

Which is fine. It's just that foo is a leaf node. That's what I want.The semantics work, it's just one level up.

True, relative links don't work when you have slashed and unslashed bothworking. Because they'll be at different "levels" in the tree. So beforeI add any relative links to my pages, I'll need to put in the 31s fromslashed to unslashed (which is the direction they should've been goingall along) so there's only one canonical URL for each page.

Sandra