Skip to content

Commit

Permalink
Backport PR jupyterlab#7174: Fix tree URLs to work when there is a wo…
Browse files Browse the repository at this point in the history
…rkspace in the URL.
  • Loading branch information
afshin authored and MeeseeksDev[bot] committed Sep 12, 2019
1 parent 8983786 commit 7baa037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/application-extension/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const tree: JupyterFrontEndPlugin<void> = {
const { commands } = app;
const treePattern = new RegExp(`^${paths.urls.tree}([^?]+)`);
const workspacePattern = new RegExp(
`^${paths.urls.workspaces}[^?\/]+/tree/([^?]+)`
`^${paths.urls.workspaces}/[^?/]+/tree/([^?]+)`
);

commands.addCommand(CommandIDs.tree, {
Expand Down

0 comments on commit 7baa037

Please sign in to comment.