<-- back to the mailing list

Should Gemini clients alert users upon redirect?

Peter Deal dealpete at fastmail.com

Fri Sep 18 20:01:48 BST 2020

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

When I was creating my Gemini client for MacOS, I actually had some difficulty with this. The default Swift URL library automatically removes the slash from the end of a path when you’re converting from a string. It took me some effort to get it working properly for Gemini links - I ended up creating my own GeminiURL struct that puts the slashes back at the end of the path.

Peter

On Sep 18, 2020, at 5:02 AM, mailinglists at ngalt.com wrote:
Background reading:
=
https://alistapart.com/article/slashforward/
In the above article, Dan Bogan makes a case for adding slashes to the end of all URLs.† I thought it was convincing, so that's how I've been rolling for years.
One of my current favorite Gemini clients, by default, alerts the user when following a link and gives the user an option to continue or abort the navigation.
One of the capsules I visit from both CAPCOM and Spacewalk has links that are all trailing-slashless. Not only are the links in CAPCOM/Spacewalk slashless, but the intra-capsule links are as well.
Should I be sending a polite change request to the author of the capsule, to the maintainer of the Gemini client, to both, or neither? At least with the Gemini client, I could send along a patch to change the default.
----
† Time and CMS changes have not been good to the article. You'll need to hover over the links in the code snippets and look at your link-preview bar/popup to see what he's talking about.