Skip to content

Fix double URL encoding error when creating a notebook in a folder containing spaces#391

Open
tomasr8 wants to merge 1 commit intojupyter:mainfrom
tomasr8:fix-notebook-path
Open

Fix double URL encoding error when creating a notebook in a folder containing spaces#391
tomasr8 wants to merge 1 commit intojupyter:mainfrom
tomasr8:fix-notebook-path

Conversation

@tomasr8
Copy link
Copy Markdown

@tomasr8 tomasr8 commented Dec 4, 2025

Fixes jupyter/notebook#5841

Steps to reproduce:

  • Run jupyter nbclassic
  • Create a new folder with a space in the name
  • Open the folder
  • Refresh the page (<body>'s data-notebook-path should now be url-encoded)
  • Create a new python3 notebook
  • Get the error from the linked issue

The fix is to use the existing util get_body_data to first decode the notebook path since Contents.prototype.api_url will encode it again.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot create a notebook if the folder name contains spaces

1 participant