Make isHistory regex slightly more specific

This commit is contained in:
Jonathan King
2018-10-16 13:01:17 +01:00
parent 61cce88ef8
commit 91d79491f4

View File

@@ -310,7 +310,7 @@ class DocumentScene extends React.Component<Props> {
const document = this.document;
const revision = this.revision;
const isShare = match.params.shareId;
const isHistory = match.url.match(/history/);
const isHistory = match.url.match(/\/history\//); // Can't match on history alone as that can be in the user-generated slug
if (this.notFound) {
return navigator.onLine ? (