Skip to content

Commit fa65c00

Browse files
authored
fix: fix resource display when redirecting from /notebooks/* (#148)
1 parent 4f1e927 commit fa65c00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbclassic/notebookapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ def initialize_handlers(self):
272272
# Default routes
273273
# Order matters. The first handler to match the URL will handle the request.
274274
handlers = []
275-
# Add a redirect from /notebooks to /edit
275+
# Add a redirect from /notebooks to /files
276276
# for opening non-ipynb files in edit mode.
277277
handlers.append(
278278
(
279279
rf"/{self.file_url_prefix}/((?!.*\.ipynb($|\?)).*)",
280280
RedirectHandler,
281-
{"url": self.serverapp.base_url+"edit/{0}"}
281+
{"url": self.serverapp.base_url+"files/{0}"}
282282
)
283283
)
284284

0 commit comments

Comments
 (0)