Skip to content

feat: open http(s) links in the service they belong to - #2597

Open
eXistenZNL wants to merge 2 commits into
ferdium:developfrom
eXistenZNL:feat/open-url-in-service
Open

eXistenZNL wants to merge 2 commits into
ferdium:developfrom
eXistenZNL:feat/open-url-in-service

Conversation

@eXistenZNL

@eXistenZNL eXistenZNL commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

This PR lets Ferdium open an http(s) link it is launched with in the service it belongs to. That happens when Ferdium is the target of a link router or the default browser, for example a Slack permalink clicked in another app.

  • The main process picks the first http(s) URL from the arguments, both on launch and when a second instance passes them on, and sends it to the window. Ferdium's own ferdium:// deep links are handled as before.
  • The renderer waits until the services are loaded, because the link may be what started Ferdium. It then opens the link in the first displayed service whose own address has the same host, and wakes the service up first when it is hibernated.
  • When no service matches, Ferdium shows a dialog saying so and does nothing else. It does not pass the link on to the default browser, because a link router may send it straight back to Ferdium.

This builds on #2595, which makes Linux pass these arguments on at all, so this PR also contains that commit until #2595 is merged.

Part of a Larger Feature

This PR is part of a larger feature: letting Ferdium open links in the service they belong to, so it behaves more like the native apps of those services. That covers web links (for example a Slack permalink handed to Ferdium by a link router) and the app links of a service (for example the slack:// link behind the "Open in app" button on a Slack web page). Each recipe decides which links are its own, so a service can add support for its links without changes to Ferdium itself. App links can be enabled on Linux and Windows; macOS will follow in a later PR.

The feature is split up so each part can be reviewed on its own:

  1. fix: handle deep links on Linux #2595
  2. fix: don't open a window in a second instance #2596
  3. feat: open http(s) links in the service they belong to #2597 (builds on 1) 👈 You are here
  4. feat: open app links like slack:// in the service they belong to #2598 (builds on 3)
  5. feat: open links and app links in Slack and WhatsApp ferdium-recipes#761 (needs 4)

Motivation and Context

Ferdium handles a ton of services for me; with this change it can behave much more like the various native apps that exist for each service. Having this feature makes the whole process of getting a link into Ferdium (where you are logged in to a service) much more integrated.

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

Ferdium can open http(s) links in the service they belong to, for example when a link router hands them to Ferdium.

@mdbraber

Copy link
Copy Markdown

Thanks @eXistenZNL hope to see this merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants