Queries and redirection
This hasn't come up yet, but I want to get a handle on this before it does and have an answer. The question is, a client submits the following request:
and sends a redirection to
Should the client use the redirection as is, or attach the original query? Having thought on this, my answer is "as is" that is, no, the client SHOULD NOT include the original query on the redirection, as the server knows more about the destination than the client does. If the query is important, then the server can include the original query in the redirect.
One reason to prevent clients from attaching the query string to a redirected location is that the output represents the location of the query and thus, no query string is needed:
gemini://example.com/foo?a%20fine%20query redirects to
gemini://example.com/a/fine/result. There's no reason (in my mind) for the query to be part of that.
Another reason is how to apply the original query if a new query is part of the redirected location?
As I said, this hasn't come up, and it may be a non-issue, but I thought it should be addressed.