Skip to content

Commit

Permalink
fix generation of livebook paths to handle omitted '.html' correctly (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
josecfreittas authored Jul 18, 2023
1 parent 6c3afe5 commit be43c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit be43c5a

Please sign in to comment.