Closes #706 - internal links incorrectly redirecting

This commit is contained in:
Tom Moor
2018-06-25 20:45:26 -07:00
parent 614b08311f
commit 657d0775f5

View File

@@ -234,7 +234,8 @@ class DocumentScene extends React.Component<Props> {
onClickLink = (href: string) => {
if (isInternalUrl(href)) {
this.props.history.push(href);
const url = new URL(href);
this.props.history.push(url.pathname);
} else {
window.open(href, '_blank');
}