Fix opening in new tab with internal links (#4677)
This commit is contained in:
1 parent
eef4db67b1
commit
2e7e0696a3
1 file changed
+5
@@ -212,6 +212,11 @@ pub fn Link(props: LinkProps) -> Element {
|
|||||||
return;
|
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
|
// todo(jon): this is extra hacky for no reason - we should fix prevent default on Links
|
||||||
if do_default && is_external {
|
if do_default && is_external {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user