Skip to content

Commit

Permalink
remove redirect from /notebooks to /files
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Mar 26, 2023
1 parent f237e24 commit 99f3f49
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions nbclassic/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,6 @@ def initialize_handlers(self):
# Default routes
# Order matters. The first handler to match the URL will handle the request.
handlers = []
# Add a redirect from /notebooks to /files
# for opening non-ipynb files in edit mode.
handlers.append(
(
rf"/{self.file_url_prefix}/((?!.*\.ipynb($|\?)).*)",
RedirectHandler,
{"url": self.serverapp.base_url+"files/{0}"}
)
)
# Add a redirect from /nbclassic to /nbclassic/tree
# if both notebook>=7 and nbclassic are installed.
if len(nbclassic_path()) > 0:
Expand Down

0 comments on commit 99f3f49

Please sign in to comment.