diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index 0cf0dc728..23ef41cf8 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -234,6 +234,12 @@ class DocumentScene extends React.Component { onClickLink = (href: string) => { if (isInternalUrl(href)) { + // relative + if (href[0] === '/') { + this.props.history.push(href); + } + + // absolute const url = new URL(href); this.props.history.push(url.pathname); } else {