Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Use appUrl and file name for shareable link #457

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions dodo.py
Expand Up @@ -919,6 +919,7 @@ class L:
ALL_ESLINT = _clean_paths(
P.PACKAGES.rglob("*/src/**/*.js"),
P.PACKAGES.rglob("*/src/**/*.ts"),
P.PACKAGES.rglob("*/src/**/*.tsx"),
)
ALL_JSON = _clean_paths(
P.PACKAGE_JSONS,
Expand Down
10 changes: 9 additions & 1 deletion packages/application-extension/src/index.tsx
Expand Up @@ -518,7 +518,15 @@ const shareFile: JupyterFrontEndPlugin<void> = {
return;
}

const url = new URL(URLExt.join(PageConfig.getBaseUrl(), 'lab'));
const url = new URL(
URLExt.join(
PageConfig.getBaseUrl(),
PageConfig.getOption('appUrl').slice(
PageConfig.getOption('baseUrl').length
),
'index.html'
)
);
const models = toArray(
filter(widget.selectedItems(), item => item.type !== 'directory')
);
Expand Down