Fixes: Quick fix for document move not working

This commit is contained in:
Tom Moor
2019-01-26 18:01:13 +00:00
parent b46db25553
commit 70d30e31b9

View File

@@ -156,7 +156,9 @@ class DocumentScene extends React.Component<Props> {
this.viewTimeout = setTimeout(document.view, MARK_AS_VIEWED_AFTER);
}
if (!this.revision) {
const isMove = props.location.pathname.match(/move$/);
const canRedirect = !this.revision && !isMove;
if (canRedirect) {
const canonicalUrl = updateDocumentUrl(
props.match.url,
document.url