💾 Archived View for rawtext.club › ~sloum › geminilist › 002477.gmi captured on 2020-09-24 at 01:10:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- back to the mailing list

The optional scheme in URLs

Alex Schroeder alex at gnu.org

Mon Aug 24 14:24:36 BST 2020

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

A few sites out there offer both Gemini and web access. That's cool.It's a bridge to Gemini space. At first, as a developer who had writtenjust such a tool, I was exasperated: should I be linking to Gemini URLsor to web URLs, or both? Or translate them automatically in thebackground?

It turns out, this is not required. Just now, for example, I added linklike the following:

=

//flounder.online/ Flounder, for simple web people

The magic of URLs is that the actual target depends on what you'relooking at: If you're looking at https://transjovian.org:1965/gemini/page/Sites then the link goes to https://flounder.online/ and when you're looking atgemini://transjovian.org/gemini/page/Sites then the link goes togemini://flounder.online/.

Now I'm just taking extra care such that as many URLs as possible arereachable using either scheme. If they are, then I can link to theseresources without specifying a scheme and it'll just work.

CheersAlex