Show More
@@ -33,7 +33,7 b' class NewHandler(IPythonHandler):' | |||
|
33 | 33 | @web.authenticated |
|
34 | 34 | def get(self): |
|
35 | 35 | notebook_id = self.notebook_manager.new_notebook() |
|
36 |
self.redirect( |
|
|
36 | self.redirect(url_path_join(self.base_project_url, notebook_id)) | |
|
37 | 37 | |
|
38 | 38 | |
|
39 | 39 | class NamedNotebookHandler(IPythonHandler): |
@@ -60,7 +60,7 b' class NotebookRedirectHandler(IPythonHandler):' | |||
|
60 | 60 | notebook_name = os.path.splitext(notebook_name)[0] |
|
61 | 61 | notebook_id = self.notebook_manager.rev_mapping.get(notebook_name, '') |
|
62 | 62 | if notebook_id: |
|
63 |
url = self.settings.get('base_project_url', '/') |
|
|
63 | url = url_path_join(self.settings.get('base_project_url', '/'), notebook_id) | |
|
64 | 64 | return self.redirect(url) |
|
65 | 65 | else: |
|
66 | 66 | raise HTTPError(404) |
@@ -71,5 +71,5 b' class NotebookCopyHandler(IPythonHandler):' | |||
|
71 | 71 | @web.authenticated |
|
72 | 72 | def get(self, notebook_id): |
|
73 | 73 | notebook_id = self.notebook_manager.copy_notebook(notebook_id) |
|
74 |
self.redirect( |
|
|
74 | self.redirect(url_path_join(self.base_project_url, notebook_id)) | |
|
75 | 75 |
General Comments 0
You need to be logged in to leave comments.
Login now