Merge pull request #785 from JonathanUsername/master

Make isHistory regex slightly more specific
This commit is contained in:
Tom Moor
2018-10-19 20:07:54 -07:00
committed by GitHub

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 ? (