diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index fc4ae0d34..c9c3b46ce 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -167,10 +167,13 @@ class DocumentScene extends React.Component { } if (!this.revision) { - // Update url to match the current one - this.props.history.replace( - updateDocumentUrl(props.match.url, document.url) + const canonicalUrl = updateDocumentUrl( + props.match.url, + document.url ); + if (this.props.location !== canonicalUrl) { + this.props.history.replace(canonicalUrl); + } } } } else {