fix: Clicking link with blank href should not open new tab
This commit is contained in:
@ -56,7 +56,7 @@ class Editor extends React.Component<PropsWithRef> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.props.history.push(navigateTo);
|
this.props.history.push(navigateTo);
|
||||||
} else {
|
} else if (href) {
|
||||||
window.open(href, "_blank");
|
window.open(href, "_blank");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user