Why Firefox uses the same profile every time
Your computer sends a clicked link to the default browser. Firefox gets the link without any hint of which profile it belongs in, so it sends it to one profile, usually the one marked as default in about:profiles. People have asked for a choice on Mozilla's support forum since at least 2021.
You can change which profile gets the links there, with Set as default profile. But it's still one profile for every link. And if you moved to Firefox's new profile menu, the setting is harder to find: "how to set a default profile in the new profile manager" is one of the most-answered Firefox profile questions on r/firefox.
One link: the command line
Firefox opens a link in a profile you name when you start it with --profile and the profile's folder. To find the folder, open about:profiles and copy the Root Directory of the profile. Then, on a Mac:
open -na Firefox --args --profile "$HOME/Library/Application Support/Firefox/Profiles/x8k2p1q0.work" --new-tab "https://github.com"
On Windows:
"C:\Program Files\Mozilla Firefox\firefox.exe" --profile "C:\Users\sam\AppData\Roaming\Mozilla\Firefox\Profiles\x8k2p1q0.work" --new-tab "https://github.com"
If that profile is already open, the link goes to a new tab there; if not, Firefox starts it. It's good for scripts and shortcuts, but it doesn't help with links you click in other apps.
Inside one profile: containers
If you only need separate sign-ins, Firefox's Multi-Account Containers keep work and personal apart in one profile. A link from another app still opens outside any container, unless you add the Open external links in a container add-on. It lets a link name its container with an ext+container: address, which a link router can use.
Links from other apps: a link router
A link router becomes your default browser and hands each link to the browser and profile you choose. Most only handle Chrome-style profiles. For Firefox, check which kind of profile a router supports: Velja opens only the new-style profiles, and Finicky has Firefox profiles only in its 4.4 alpha.
With rules, you also write one per site: github.com goes to Work. A site you use in both profiles needs a prompt.
Without rules: the profile where you use the site
Profile Porter opens each link in the Firefox profile where you use that site. It reads your history and sign-in cookies on your computer, so the GitHub link goes to Work and the YouTube link to Personal, with no rules to write.
- Old-style and new-style Firefox profiles, and other Firefox-based browsers.
- Containers show up as profiles of their own, once the Open external links in a container add-on is installed.
- Chrome, Edge, Brave and Safari profiles too, so one link can move from Firefox to Chrome if that's where you use the site.
- When two profiles are close, it asks, and remembers your answer.
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.