From 690feb60406214454bec47aa7de2db49dd5adf49 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 5 Nov 2018 23:39:10 -0800 Subject: [PATCH] Fixes: Opening document history menu --- 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 5a8cb7db1..16dccfaad 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\//); // Can't match on history alone as that can be in the user-generated slug + 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 ? (