[spec] What to do of fragments when there is a redirection

Gary Johnson lambdatronic at disroot.org
Tue Jan 5 18:53:26 GMT 2021
Solderpunk <solderpunk at posteo.net> writes:

> 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?

That's a fair question. One of the recommendations you made for server
authors was that we should redirect any URLs that don't end with a / to
their equivalent paths with / appended.

Thus a URL like    gemini://mycapsule.org/foo?somequery
should redirect to gemini://mycapsule.org/foo/?somequery
in order for the client to be able to correctly resolve any relative
URLs in links within the returned gemtext document (assuming this URL
responds with gemtext).

This is what I currently do in Space Age. If we were to mandate dropping
the query string, I suspect we would end up with some very broken
dynamic pages in Geminispace.

YMMV,
  Gary

-- 
GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


Archive home | About this archive