Le lundi 28 d?cembre 2020, 10:59:33 CET Solderpunk a ?crit :
> Okay, so original URL fragments should be carried over to redirect URLs
> if the redirect URL has no fragment (which I still suspect perhaps
> should be the only valid case).
This is my opinion as well, the fragment should be carried over if the redirect URL has no fragment.
I also think that it should be allowed to redirect to a URL with a fragment, the obvious example is if several documents are merged, their previous URL can link to the specific part of the merged document.
Someone used HTML served over gemini as an example, I think it is a good thinking exercise to be able to analyse fragment handling in gemini protocol separately from fragment meaning in text/gemini documents.
Think about a client browsing HTML through gemini protocol, and needing to be able to link and redirect to anchors.
Fragments may be forbidden in the gemini request, since they should never be sent to the server.
> What about queries?
>
> To some extent, the issue of a redirect URL having a query in it is
> similar to a link in a text/gemini document having a query in it, which
> was slightly controversial. Not so much in the sense that people
> thought it should be disallowed, but that it was widely believed clients
> should handle such things very carefully and give the user a chance to
> confirm or edit the query string contents.
>
> Should redirect URLs be allowed to contain queries?
>
> If an original URL has a query in it but the client gets back a redirect
> URL without a query, should the original query be appended?
I think queries should be handled exactly like path segment, and not be carried over to a redirection without query, and be allowed in the redirection.
If I was redoing the tictactoe today, I would use a query string instead of a path segment to carry the game state, making it clearer to people and especially crawlers (GUS and lupa both played every possible tictactoe game while crawling) that it is the same page with a different input.
See GUS backlink pages for instance, it is useful for me to be able to link to
gemini://gus.guru/backlinks?tictactoe.lanterne.chilliet.eu
And it may make sense for me to redirect there from my server if I had a local responses link, and I decided to switch to using GUS backlinks instead.
C?me