Skip to content

Fixed issue when opening notebook with %20 in filename#7848

Open
og-khushalpatel wants to merge 1 commit intojupyter:7.2.xfrom
og-khushalpatel:fix/issue-7823
Open

Fixed issue when opening notebook with %20 in filename#7848
og-khushalpatel wants to merge 1 commit intojupyter:7.2.xfrom
og-khushalpatel:fix/issue-7823

Conversation

@og-khushalpatel
Copy link

@og-khushalpatel og-khushalpatel commented Mar 4, 2026

References

Fixes #7823

Code changes

The fix wraps path with URLExt.encodeParts() in pathopener.ts before passing it to URLExt.join(). Previously, paths containing special characters like literal %20 (a filename actually named A%20B.ipynb) were passed unencoded, causing the URL constructor to misinterpret %20 as an already-encoded space. URLExt.encodeParts() properly percent-encodes each path segment, so %20 in a filename becomes %2520 in the URL, preserving the literal characters.

User-facing changes

Screencast.from.2026-03-04.11-49-26.webm

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Binder 👈 Launch a Binder on branch og-khushalpatel/notebook/fix%2Fissue-7823

@og-khushalpatel
Copy link
Author

og-khushalpatel commented Mar 11, 2026

Hi @krassowski @jtpio , I’m following up on this PR in case it got buried. Please let me know if any changes are needed from my side. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants