PivotLink: Browser Router
Lightweight link redirection tool with an intuitive 5-tier ranked configuration layout.
Author: gauthumj
Ever had a browser open already and Windows opened a Discord/Slack link in your default browser by launching it from scratch? Now it won't.
What It Does
PivotLink intercepts outgoing URL launches system-wide and redirects them to whichever browser you already have running, based on a 5-tier priority list you configure. Instead of Windows blindly spawning your default browser, PivotLink checks what's actually open and sends the link there.
How It Works
- Hooks
ShellExecuteW, ShellExecuteExW, ShellExecuteA, ShellExecuteExA, and CreateProcessW to catch URL opens before they reach the OS default handler.
- Scans the running process list using a single-pass converging search to find the highest-priority browser that's already active.
- If a match is found, the link is silently rerouted to that browser. If none of your ranked browsers are running, the call falls through to normal Windows behavior.
- Circular routing is prevented — if you're already inside the target browser, the hook steps aside.
Configuration
- Priority 1–5 Browsers: Rank up to five browsers by executable name (e.g.
brave.exe, firefox.exe). The first one found running wins.
- Bypass Method: Choose how to skip routing and send a link to the OS default browser instead. Default is Mouse Back + Click (press both simultaneously).
Notes
- The mod skips Session 0 processes (system services) automatically.
- A thread-local guard prevents recursive hook calls during redirection.
If you'd like to see other features or have suggestions, feel free to open an issue on the GitHub repository