Do you know something like https:
:? That's the URL scheme . You may already be familiar with this concept, as you will encounter other similar solutions in front-end development, such as mailto:
. In fact, you can create your own URL scheme, which is very cool. There are many such solutions.
I've found that custom URL schemes are most commonly used for applications that are both web and native applications. For example, two apps I use almost every day: Notion and Figma. I really like that things I handle in these apps have URLs. Everything has a URL! ?
However. When I get the URL of the Notion page (I do it often to share it with my colleagues), what I get is a URL like this...
<code>https://www.notion.so/csstricks/...</code>
This is great and can be used to open Notion pages in your browser. But I prefer Notion native apps. It is based on Electron, so it is still a web application, but I'm using it from my web browser, but from the Notion.app application on my computer.
Geoff shared an article a few days ago that documented how to easily make the application's browser URL open in a native app:
Fortunately, Notion’s development team took this into consideration and built
notion://
link protocol. If you replacehttps://
part of any Notion page link withnotion://
, your link will automatically open in the native app, not in a web browser.Thomas Frank, "How to share Notion links that open directly in the app"
The native solution is basically the same as the web solution (except for the name), which is great. Thomas explores this in depth and describes how to modify clipboard content to replace Notion links with custom schemes.
I just want to illustrate one way I think works very well for me. The trick is not to modify the links themselves, but to react to links you know are Notion links and redirect them to open in Notion.app.
On a Mac, the trick is Choosy:
I prefer to set Choosy to never ask me which browser to use, it just does things according to the rules. So, under settings, I set up a bunch of applications:
For Notion, I'll monitor the link to Notion and let it open Notion... that's it!
Other applications basically do the exact same thing. The effect is very good.
But there is a warning! Occasionally, I have to switch some apps back and forth here. For example, the password reset process might send me to slack.com or some other page that is part of the process and is accessible only over the web. If Choosy is running, it will try to force the page to open in Slack.app, but it won't, and you may be stuck. So I have to close it here for the time being.
The above is the detailed content of Application-Specific Links. For more information, please follow other related articles on the PHP Chinese website!

This is the 3rd post in a small series we did on form accessibility. If you missed the second post, check out "Managing User Focus with :focus-visible". In

This tutorial demonstrates creating professional-looking JavaScript forms using the Smart Forms framework (note: no longer available). While the framework itself is unavailable, the principles and techniques remain relevant for other form builders.

The CSS box-shadow and outline properties gained theme.json support in WordPress 6.1. Let's look at a few examples of how it works in real themes, and what options we have to apply these styles to WordPress blocks and elements.

If you’ve recently started working with GraphQL, or reviewed its pros and cons, you’ve no doubt heard things like “GraphQL doesn’t support caching” or

The Svelte transition API provides a way to animate components when they enter or leave the document, including custom Svelte transitions.

In this article we will be diving into the world of scrollbars. I know, it doesn’t sound too glamorous, but trust me, a well-designed page goes hand-in-hand

How much time do you spend designing the content presentation for your websites? When you write a new blog post or create a new page, are you thinking about

npm commands run various tasks for you, either as a one-off or a continuously running process for things like starting a server or compiling code.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools