Encode URI file path (#7698)

Vishnutheep B 6 months ago committed by GitHub
parent 8f91eddf56
commit 629e63445e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,7 +15,7 @@ class DefaultNotebookPathOpener implements INotebookPathOpener {
open(options: INotebookPathOpener.IOpenOptions): WindowProxy | null {
const { prefix, path, searchParams, target, features } = options;
const url = new URL(
URLExt.join(prefix, path ?? ''),
URLExt.join(prefix, URLExt.encodeParts(path ?? '')),
window.location.origin
);
if (searchParams) {

Loading…
Cancel
Save