💾 Archived View for gemi.dev › gemini-mailing-list › 000339.gmi captured on 2024-06-16 at 12:53:14. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

The optional scheme in URLs

1. Alex Schroeder (alex (a) gnu.org)

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 written
just such a tool, I was exasperated: should I be linking to Gemini URLs
or to web URLs, or both? Or translate them automatically in the
background?

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

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

The magic of URLs is that the actual target depends on what you're
looking 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 at
gemini://transjovian.org/gemini/page/Sites then the link goes to
gemini://flounder.online/.

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

Cheers
Alex

Link to individual message.

2. alex wennerberg (alex (a) alexwennerberg.com)

Quoting Alex Schroeder (2020-08-24 06:24:36)
> It turns out, this is not required. Just now, for example, I added link
> like the following:
> 
> => //flounder.online/ Flounder, for simple web people
> 
> The magic of URLs is that the actual target depends on what you're
> looking 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 at
> gemini://transjovian.org/gemini/page/Sites then the link goes to
> gemini://flounder.online/.

Ah, this is awesome -- I never knew this was part of the URL spec. 
Glad you're enjoying my site :)

Alex

Link to individual message.

3. colecmac (a) protonmail.com (colecmac (a) protonmail.com)

Happy you're seeing this Alex!

Sounds like you should encourage your users to do flounder URLs like that,
or potentially convert them to links like that yourself.

makeworld

??????? Original Message ???????
On Monday, August 24, 2020 10:20 AM, alex wennerberg <alex at alexwennerberg.com> wrote:

> Quoting Alex Schroeder (2020-08-24 06:24:36)
>
> > It turns out, this is not required. Just now, for example, I added link
> > like the following:
> > => //flounder.online/ Flounder, for simple web people
> > The magic of URLs is that the actual target depends on what you're
> > looking 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 at
> > gemini://transjovian.org/gemini/page/Sites then the link goes to
> > gemini://flounder.online/.
>
> Ah, this is awesome -- I never knew this was part of the URL spec.
> Glad you're enjoying my site :)
>
> Alex

Link to individual message.

4. alex wennerberg (alex (a) alexwennerberg.com)

Quoting colecmac at protonmail.com (2020-08-24 07:25:01)
> Happy you're seeing this Alex!
> 
> Sounds like you should encourage your users to do flounder URLs like that,
> or potentially convert them to links like that yourself.
> 
> makeworld

I just updated the documentation pages to reference them as much as I can!

Alex

Link to individual message.

---

Previous Thread: Got my gemini server running

Next Thread: New Android Client: TvĂĽ