瀏覽代碼

fix issue where autogenerated workspaces and sharable links weren't working together

James Reeve 5 年之前
父節點
當前提交
c628c157fc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/apputils-extension/src/index.ts

+ 1 - 1
packages/apputils-extension/src/index.ts

@@ -260,7 +260,7 @@ const resolver: JupyterFrontEndPlugin<IWindowResolver> = {
         const pool =
           'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
         const random = pool[Math.floor(Math.random() * pool.length)];
-        const path = URLExt.join(base, workspaces, `auto-${random}`) + rest;
+        const path = URLExt.join(base, workspaces, `auto-${random}`, rest);
 
         // Clone the originally requested workspace after redirecting.
         query['clone'] = workspace;