diff --git a/assets/js/content.js b/assets/js/content.js index c416f8ff2..0058233e6 100644 --- a/assets/js/content.js +++ b/assets/js/content.js @@ -59,7 +59,7 @@ function fixSpacebar () { */ function setLivebookBadgeUrl () { const path = window.location.pathname - const notebookPath = path.replace(/\.html$/, '.livemd') + const notebookPath = path.replace(/(\.html)?$/, '.livemd') const notebookUrl = new URL(notebookPath, window.location.href).toString() settingsStore.getAndSubscribe(settings => {