ソースを参照

fix: 🐛 copy shareable link

Copy shareable link command encodes the url properly when file have a
blank space in the name.

✅ Closes: #9953
Ognjen Jevremovic 4 年 前
コミット
b07587614a
1 ファイル変更1 行追加2 行削除
  1. 1 2
      packages/filebrowser-extension/src/index.ts

+ 1 - 2
packages/filebrowser-extension/src/index.ts

@@ -435,14 +435,13 @@ const shareFile: JupyterFrontEndPlugin<void> = {
         if (!model) {
           return;
         }
-        const path = encodeURI(model.path);
 
         Clipboard.copyToSystem(
           URLExt.normalize(
             PageConfig.getUrl({
               mode: 'single-document',
               workspace: PageConfig.defaultWorkspace,
-              treePath: path
+              treePath: model.path
             })
           )
         );