Skip to content

Commit 629e634

Browse files
authored
Encode URI file path (jupyter#7698)
1 parent 8f91edd commit 629e634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/application/src/pathopener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DefaultNotebookPathOpener implements INotebookPathOpener {
1515
open(options: INotebookPathOpener.IOpenOptions): WindowProxy | null {
1616
const { prefix, path, searchParams, target, features } = options;
1717
const url = new URL(
18-
URLExt.join(prefix, path ?? ''),
18+
URLExt.join(prefix, URLExt.encodeParts(path ?? '')),
1919
window.location.origin
2020
);
2121
if (searchParams) {

0 commit comments

Comments
 (0)