Files
multica/packages/views/navigation
Jiayuan Zhang 9e3b661d44 fix(views): open a background tab on middle-click of AppLink (MUL-5457) (#6126)
AppLink only handled onClick, and a middle click never produces a click
event, so it fell through to Chromium's native window-open. The desktop
shell denies every window-open and forwards the URL to openExternalSafely,
which only allows http/https. In a packaged build the renderer is file://,
so an in-app href resolves to file:///<path> and gets dropped — middle
clicking a sub-issue row, list row, board card, gantt bar, parent
breadcrumb or content mention did nothing at all. In dev the renderer is
http://localhost:<port>, which clears the allowlist and throws the click
out into the system browser instead.

Add onAuxClick with the same semantics as useRowLink: middle button only,
background tab through the adapter on desktop. Web keeps the native path
untouched — AppLink renders a real anchor, so the browser's own background
tab is already the correct outcome and preventing it would break it.

Co-authored-by: Lambda <agent@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-29 19:00:50 +08:00
..