fix: Redirect loop in shared documents

closes #2867
This commit is contained in:
Tom Moor
2021-12-17 16:42:12 -08:00
parent e7c3028ef2
commit f8736758f1

View File

@@ -401,7 +401,9 @@ class DocumentScene extends React.Component<Props> {
!revision &&
!isShare;
const canonicalUrl = updateDocumentUrl(this.props.match.url, document);
const canonicalUrl = shareId
? this.props.match.url
: updateDocumentUrl(this.props.match.url, document);
return (
<ErrorBoundary>