diff --git a/packages/application-extension/src/index.tsx b/packages/application-extension/src/index.tsx index b4da47356c06..c1c22c1eee5e 100644 --- a/packages/application-extension/src/index.tsx +++ b/packages/application-extension/src/index.tsx @@ -231,7 +231,7 @@ const tree: JupyterLabPlugin = { const treeMatch = args.path.match(Patterns.tree); const workspaceMatch = args.path.match(Patterns.workspace); const match = treeMatch || workspaceMatch; - const path = decodeURIComponent(match[1]); + const path = decodeURI(match[1]); const { page, workspaces } = app.info.urls; const workspace = PathExt.basename(app.info.workspace); const url = diff --git a/packages/filebrowser-extension/src/index.ts b/packages/filebrowser-extension/src/index.ts index bfcee6bf18df..e98ae614dce0 100644 --- a/packages/filebrowser-extension/src/index.ts +++ b/packages/filebrowser-extension/src/index.ts @@ -440,7 +440,7 @@ function addCommands( commands.addCommand(CommandIDs.share, { execute: () => { - const path = encodeURIComponent(browser.selectedItems().next().path); + const path = encodeURI(browser.selectedItems().next().path); const tree = PageConfig.getTreeUrl({ workspace: true }); Clipboard.copyToSystem(URLExt.join(tree, path));