2
10
Fork
You've already forked sutter
3

Feature request: Link to external pages available on both Gemini and WWW #10

Open
opened 2025年02月18日 01:33:35 +01:00 by skyfaller · 0 comments

Sutter publishes to both Gemini and the Web.

I am able to link internally to pages on my website inside a Gemini file, and Sutter will interpret that internal link as an https:// link from the Web version, and a gemini:// link from the Gemini capsule. For example, in a .gmi file I can link to the archive like so:

=> archive

This results in a link to archive.html on the Web and a link to archive.gmi on Gemini.

The alternative would be to link to the same page twice, if you did not have this feature, like so:

This blog is available both on the World Wide Web and on Gemini:
=> https://blog.ungovernable.love Web site
=> gemini://blog.ungovernable.love Gemini capsule

This is rather cumbersome both on the web and in Gemini.

Proposed solution

I propose writing external links with the protocol stripped off the front, and having Sutter interpret them with the correct protocol:

=> //geminiprotocol.net The official Project Gemini website

I'm not the first person to make this proposal: https://admin.flounder.online/gemini_text_guide.gmi

For links to content that is hosted at the same URL on Gemini and HTTP(S), such as flounder.online links, I recommend using schemaless URLs such as //alex.flounder.online as they will properly show up on both gemini and http pages.

If this is in fact the intended behavior, then this should be a bug report instead. Right now external schemaless links also add the .html and .gmi to every link, which is not appropriate for many websites.

  • => //geminiprotocol.net without a trailing slash results in https://geminiprotocol.net.html/ on WWW, and gemini://geminiprotocol.net.gmi/ on Gemini.
  • => //geminiprotocol.net/ with a trailing slash results in https://geminiprotocol.net/.html on WWW and gemini://geminiprotocol.net/.gmi on Gemini.

None of those links work.

I'm open to alternate implementations, but I think something along the lines of schemaless URLs would be warranted.

(削除) In case this wasn't clear, you can in fact check out my Sutter page displaying the issues discussed above: (削除ここまで)

EDIT: You can no longer see my pages displaying these issues because my web host went out of business and I'm not interested in trying to run Sutter myself while this issue is unsolved.

Sutter publishes to both Gemini and the Web. I am able to link internally to pages on my website inside a Gemini file, and Sutter will interpret that internal link as an `https://` link from the Web version, and a `gemini://` link from the Gemini capsule. For example, in a `.gmi` file I can link to the archive like so: ```gemtext => archive ``` This results in a link to `archive.html` on the Web and a link to `archive.gmi` on Gemini. The alternative would be to link to the same page twice, if you did not have this feature, like so: ```gemtext This blog is available both on the World Wide Web and on Gemini: => https://blog.ungovernable.love Web site => gemini://blog.ungovernable.love Gemini capsule ``` This is rather cumbersome both on the web and in Gemini. ## Proposed solution I propose writing external links with the protocol stripped off the front, and having Sutter interpret them with the correct protocol: ``` => //geminiprotocol.net The official Project Gemini website ``` I'm not the first person to make this proposal: https://admin.flounder.online/gemini_text_guide.gmi > For links to content that is hosted at the same URL on Gemini and HTTP(S), such as flounder.online links, I recommend using schemaless URLs such as //alex.flounder.online as they will properly show up on both gemini and http pages. If this is in fact the intended behavior, then this should be a bug report instead. Right now external schemaless links also add the .html and .gmi to every link, which is not appropriate for many websites. - `=> //geminiprotocol.net` *without* a trailing slash results in `https://geminiprotocol.net.html/` on WWW, and `gemini://geminiprotocol.net.gmi/` on Gemini. - `=> //geminiprotocol.net/` *with* a trailing slash results in `https://geminiprotocol.net/.html` on WWW and `gemini://geminiprotocol.net/.gmi` on Gemini. None of those links work. I'm open to alternate implementations, but I think something along the lines of schemaless URLs would be warranted. ~~In case this wasn't clear, you can in fact check out my Sutter page displaying the issues discussed above:~~ EDIT: You can no longer see my pages displaying these issues because my web host went out of business and I'm not interested in trying to run Sutter myself while this issue is unsolved.
skyfaller changed title from (削除) Linking to external pages available on both Gemini and the Web (削除ここまで) to Feature request: Link to external pages available on both Gemini and WWW 2025年02月18日 01:34:28 +01:00
Sign in to join this conversation.
No Branch/Tag specified
master
1.05
1.04
1.03
1.02
1.01
0.99
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
grunfink/sutter#10
Reference in a new issue
grunfink/sutter
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?