Browse Source

Add getWorkspacesUrl().

Afshin Darian 7 years ago
parent
commit
f92a53b5ca
1 changed files with 8 additions and 0 deletions
  1. 8 0
      packages/coreutils/src/pageconfig.ts

+ 8 - 0
packages/coreutils/src/pageconfig.ts

@@ -128,6 +128,14 @@ namespace PageConfig {
     return URLExt.join(getBaseUrl(), getOption('pageUrl'), 'tree');
   }
 
+  /**
+   * Get the workspaces url for a JupyterLab application.
+   */
+  export
+  function getWorkspacesUrl(): string {
+    return URLExt.join(getBaseUrl(), getOption('pageUrl'), 'workspaces');
+  }
+
   /**
    * Get the base websocket url for a Jupyter application.
    */