I know I can use the protocols feature to register a handler for a custom schema (e.g. myapp://something/else), but can I use this feature to intercept specific domain URLs?
On my mobile I can click on a Facebook link in my emails (that starts with http:// facebook …) and have it open up in the Facebook app. I’d like to have http ://example.com/myapp/something/else (but not example .com, or example .com/someotherapp). Can Electron do something like this?
My specific use case is this: I’m writing an Electron app that uses the GitLab API. When a repo issue is updated, I get an email from GitLab. There’s a “View this in GitLab” link at the bottom, but clicking it obviously takes me to GitLab in my default browser. I’d like to intercept the link click for a specific URL (e.g. http ://gitlab/myapp/something) and then have my Electron app take me to the GitLab issue specified in the URL.
Is this possible? I’m not overly concerned about cross-platform, as we’re just running this on Windows machines.