From 70d30e31b9979ad0d29165f5a3bdd5e95902d222 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 26 Jan 2019 18:01:13 +0000 Subject: [PATCH] Fixes: Quick fix for document move not working --- app/scenes/Document/Document.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index 3ee00115f..534ff0c65 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -156,7 +156,9 @@ class DocumentScene extends React.Component { 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