File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919from jupyterlab_server .handlers import _camelCase , is_url
2020from notebook_shim .shim import NotebookConfigShimMixin # type:ignore
2121from tornado import web
22- from traitlets import Bool , default
22+ from traitlets import Bool , Unicode , default
2323
2424from ._version import __version__
2525
@@ -120,7 +120,7 @@ class RedirectHandler(NotebookBaseHandler):
120120 @web .authenticated
121121 def get (self ):
122122 """Get the redirect url."""
123- return self .redirect (self .base_url + "tree" )
123+ return self .redirect (self .base_url . strip ( "/" ) + "/" + self . default_url . strip ( "/" ) )
124124
125125
126126class TreeHandler (NotebookBaseHandler ):
@@ -215,7 +215,7 @@ class JupyterNotebookApp(NotebookConfigShimMixin, LabServerApp):
215215 version = version
216216 app_version = version
217217 extension_url = "/"
218- default_url = "/tree" # type:ignore
218+ default_url = Unicode ( "/tree" , config = True , help = "The default URL to redirect to from `/`" )
219219 file_url_prefix = "/notebooks"
220220 load_other_extensions = True
221221 app_dir = app_dir
You can’t perform that action at this time.
0 commit comments