Fixes: Quick fix for document move not working
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user