Skip to content

Commit

Permalink
Remove RedirectHandler (#6997)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio authored Aug 4, 2023
1 parent 262781e commit 24c7624
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,6 @@ def get_page_config(self):
return page_config


class RedirectHandler(NotebookBaseHandler):
"""A redirect handler."""

@web.authenticated
def get(self):
"""Get the redirect url."""
return self.redirect(self.base_url + "tree")


class TreeHandler(NotebookBaseHandler):
"""A tree page handler."""

Expand Down Expand Up @@ -329,7 +320,6 @@ def initialize_handlers(self):
# if the serverapp set one
page_config["token"] = ""

self.handlers.append(("/?", RedirectHandler))
self.handlers.append(("/tree(.*)", TreeHandler))
self.handlers.append(("/notebooks(.*)", NotebookHandler))
self.handlers.append(("/edit(.*)", FileHandler))
Expand Down

0 comments on commit 24c7624

Please sign in to comment.