Skip to content

Commit

Permalink
Fix the starting slash in the iframeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Sep 12, 2023
1 parent 2fb7dbd commit f3d670e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyterlite_sphinx/jupyterlite_sphinx.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ window.jupyterliteConcatSearchParams = (iframeSrc, params) => {
}
});

return iframeUrl.toString().replace(baseURL, '');
let iframeSrc = iframeUrl.toString().replace(baseURL, '');
return iframeSrc.replace(/^\//, '');
}

0 comments on commit f3d670e

Please sign in to comment.