Skip to content

How to

How to open links in a specific Chrome profile on a Mac

Updated

When you click a link in Slack, Mail or any other app, Chrome opens it in the profile window you used last, not the one you meant. Chrome has no setting to always open links in a specific profile. Here's why, and four ways to choose the profile yourself.

Why Chrome picks the wrong profile

macOS sends a clicked link to your default browser, and Chrome receives it without knowing which profile it belongs in. It opens the link in the profile whose window was in front last. If you were just reading personal mail, your work link opens in your personal profile, where you're signed out.

Chrome itself doesn't let you choose a profile per site, so for links from other apps the fix has to come from outside Chrome.

Inside Chrome: Open link as

For a link on a web page, right-click it and choose Open link as, then the profile. Chrome shows this item once you have more than one profile. It's fine for the odd link, but it's by hand every time, and it doesn't exist for links in Slack, Mail or other apps.

One link: the Terminal command

Each Chrome profile has a folder name, such as Default or Profile 1. To find it, open chrome://version in that profile and look at the last part of Profile Path. Then open a link in that profile with:

open -na "Google Chrome" --args --profile-directory="Profile 1" "https://github.com"

On Windows, the same switch works with chrome.exe:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1" "https://github.com"

It's handy in scripts and shortcuts, but it doesn't help with links you click in other apps.

Links from other apps: a link router with rules

A link router becomes your default browser, receives every clicked link and hands it to the browser and profile you set. In rule-based routers such as Finicky (free, rules in JavaScript), Velja and Choosy you write one rule per site: github.com goes to Work, notion.so goes to Personal.

This works well if you have few sites and they rarely change. Each new site needs a new rule, and a site you use in both profiles, like Google Docs, needs a prompt.

Without rules: pick the profile you're signed in to

Profile Porter is a link router that needs no rules. It reads what's already in your browsers, on your Mac: which profiles have sign-in cookies for the site, where you visit it most, where its password is saved. Each link opens in the profile you use that site in.

  • When two profiles are about even, it shows a picker; your pick teaches it for next time.
  • A wrong guess is one Undo away, in the notice that shows where it opened.
  • For a site that should always go to one profile, add a rule in Settings › Sites.
  • Google links open as the Google account that the profile is signed in to Chrome with. See Google Docs opens in the wrong account.
  • It works the same for Arc, Brave, Edge, Firefox (profiles and containers) and Safari profiles, on Mac and Windows.

Setup takes about a minute: allow Full Disk Access so it can read your browsers, then make it your default browser. See the guide.

Get Profile Porter for €12, once.

Everything included, no account, and a full refund within 14 days if it isn't for you. macOS 14 or later; on Windows 10 and 11, get it from the Microsoft Store.