diff --git a/frontend/src/pages/wiki/index-md-viewer/index.js b/frontend/src/pages/wiki/index-md-viewer/index.js index e7dfdfa934e..9ba56a28812 100644 --- a/frontend/src/pages/wiki/index-md-viewer/index.js +++ b/frontend/src/pages/wiki/index-md-viewer/index.js @@ -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) => {