From 91d79491f4defaacf3a139a0de23670effc6e87d Mon Sep 17 00:00:00 2001 From: Jonathan King Date: Tue, 16 Oct 2018 13:01:17 +0100 Subject: [PATCH] Make isHistory regex slightly more specific --- app/scenes/Document/Document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index 321b24e0b..5a8cb7db1 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -310,7 +310,7 @@ class DocumentScene extends React.Component { 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 ? (