Skip to content

Improve direct navigation to the Notebook pages - #2048

Draft
jtpio wants to merge 2 commits into
jupyterlite:mainfrom
jtpio:issue-1201-missing-path
Draft

jtpio wants to merge 2 commits into
jupyterlite:mainfrom
jtpio:issue-1201-missing-path

Conversation

@jtpio

@jtpio jtpio commented Sep 10, 2026

Copy link
Copy Markdown
Member

References

Fixes #1201

Code changes

  • Accessing /notebooks/ directly redirects to /tree
  • Show a "Cannot Open File" dialog when a file could not be opened
  • Better handle folders specified as ?path=, and update the URL when navigating sub directories in the file browser

User-facing changes

image image
jupyterlite-notebooks-redirect.mp4

Backwards-incompatible changes

None

@jtpio jtpio added the enhancement New feature or request label Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

lite-badge 馃憟 Try it on ReadTheDocs

@jtpio jtpio added this to the 0.9.0 milestone Sep 10, 2026
@jtpio
jtpio requested a balanced review from Copilot September 11, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃煛 Changes recommended

Double-decoding path parameters breaks valid filenames containing percent characters.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Improves direct navigation and URL routing for Jupyter Notebook pages.

Changes:

  • Redirects missing or directory paths to the file browser.
  • Adds missing-file dialogs and loadable folder URLs.
  • Adds routing documentation and UI coverage.
File summaries
File Description
packages/application-extension/src/index.tsx Implements routing, validation, redirects, and URL transformation.
ui-tests/test/routing.spec.ts Tests notebook-page routing scenarios.
docs/howto/configure/urls.md Documents Notebook URL parameters.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}
return;
}
const files = paths.map((path) => decodeURIComponent(path));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve user experience when naviating to /notebooks or /edit directly

2 participants