From 2e7e0696a320a2a98a07e405603f59c8296b0b42 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Sat, 20 Sep 2025 23:34:06 -0500 Subject: [PATCH] Fix opening in new tab with internal links (#4677) --- packages/router/src/components/link.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/router/src/components/link.rs b/packages/router/src/components/link.rs index 21dc1336c..80a897219 100644 --- a/packages/router/src/components/link.rs +++ b/packages/router/src/components/link.rs @@ -212,6 +212,11 @@ pub fn Link(props: LinkProps) -> Element { return; } + // If we need to open in a new tab, let the browser handle it + if new_tab { + return; + } + // todo(jon): this is extra hacky for no reason - we should fix prevent default on Links if do_default && is_external { return;