Fix opening in new tab with internal links (#4677)

This commit is contained in:
Evan Almloff authored and GitHub committed 2025-09-20 21:34:06 -07:00
1 parent eef4db67b1
commit 2e7e0696a3
1 file changed
+5
+5
View File
@@ -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;