mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-06 13:50:29 +08:00
Fix handling of the base url (#6943)
This commit is contained in:
parent
8efd94a0a8
commit
7f1a2f49ef
@ -333,7 +333,7 @@ class JupyterNotebookApp(NotebookConfigShimMixin, LabServerApp):
|
||||
(
|
||||
rf"/{self.file_url_prefix}/((?!.*\.ipynb($|\?)).*)",
|
||||
web.RedirectHandler,
|
||||
{"url": "/edit/{0}"},
|
||||
{"url": ujoin(self.serverapp.base_url, "/edit/{0}")},
|
||||
)
|
||||
)
|
||||
self.handlers.append(("/?", RedirectHandler))
|
||||
|
Loading…
x
Reference in New Issue
Block a user