Skip to content

Commit

Permalink
fix code bug (#6100)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntian authored May 17, 2024
1 parent 7adab82 commit 4610299
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/wiki/index-md-viewer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class IndexMdViewer extends React.Component {
if (node.path) {
this.setState({ currentPath: node.path });
}
if (node.href) this.props.onLinkClick(node.href);
const url = new URL(node.href);
if (node.href) this.props.onLinkClick(url.href);
};

changeInlineNode = (item) => {
Expand Down

0 comments on commit 4610299

Please sign in to comment.