diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index 0717c26c..a62e2d33 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -172,7 +172,7 @@ class DocumentScene extends React.Component { props.match.url, document.url ); - if (this.props.location !== canonicalUrl) { + if (this.props.location.pathname !== canonicalUrl) { this.props.history.replace(canonicalUrl); } }