Skip to content

Commit

Permalink
Fix handling of the base url (#6943)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Jun 23, 2023
1 parent 8efd94a commit 7f1a2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def initialize_handlers(self):
(
rf"/{self.file_url_prefix}/((?!.*\.ipynb($|\?)).*)",
web.RedirectHandler,
{"url": "/edit/{0}"},
{"url": ujoin(self.serverapp.base_url, "/edit/{0}")},
)
)
self.handlers.append(("/?", RedirectHandler))
Expand Down

0 comments on commit 7f1a2f4

Please sign in to comment.