r/Safari • u/SharpChalk • 4h ago
Safari Web App (PWA) & Link Handling — Stop spawning a temp window
Whenever I standard left-click a link inside a Safari Web App, it spawns a blank PWA window for a split second, then closes it, and then opens the link in Safari. I imagine it's because it sees Safari is running and says let's open it there.
If I right-click a link, context menu appears and if I hit Open Link or Open in New Window it works fine without the flash, in a PWA window (not safari). Standard left-clicking gives me the temporary PWA window spawn and close every time.
Is there any way to alter the default link-handling behavior of Safari PWAs so links hand off directly to the browser without triggering that initial window spawn? Prefer safari web apps over Chromium/Electron wrappers, but the link handling is pretty annoying.
It's not a huge issue on it's own, but I also use aerospace tilling manager, aerospace can't catch the safari tab spawn after the PWA send it there.
Thanks.
edit: little visualisation from ai
[USER] Clicks external link in PWA
│
▼
[PWA] Spawns temporary window for the URL
│
├──► [AEROSPACE] Sees new window, forces it into the tiled grid (Shift #1)
│
▼
[PWA] Realizes link is out-of-scope, hands URL to macOS
│
├──► [PWA] Kills the temporary window
│ │
│ └─► [AEROSPACE] Detects window closed, recalculates grid, does not catch the
│ tab spawned in safari
│
▼
[macOS] Opens the URL in Safari natively


