Should Gemini clients alert users upon redirect?

Michael Lazar lazar.michael22 at gmail.com
Wed Feb 17 03:52:47 GMT 2021
On Tue, Feb 16, 2021 at 8:53 PM Sean Conner <sean at conman.org> wrote:
>   Of the two clients I use (generally portal.mozz.us but sometimes the
> simple one I wrote), this link causes them to fail:
>
>         gemini://idiomdrottning.org/
>
>   Namely because both these clients get a redirection to:
>
>         gemini://idiomdrottning.org
>
> but both clients will always send:
>
>         gmeini://idiomdrottning.org/
>
> (well, I can speak for my own client which does that, I suspect that's
> what's happening for portal.mozz.us).  There's language in RFC-3986 about
> this particular case (section 6.2.3).
>
>   -spc

I just pushed an update to the portal.mozz.us proxy to fix this.
Actually the code was already in place, but my web framework was doing
an automatic redirect on the missing slash to try to be helpful :/ The
following URL should now work without re-adding a trailing slash.

https://portal.mozz.us/gemini/idiomdrottning.org

Your point is well taken though. gemini://example.com and
gemini://example.com/ are canonically the same resource and should
always return the same response. It took me a while to understand this
but I now see the light.

- Michael


Archive home | About this archive