Show More
@@ -243,7 +243,7 b' class NotebookWebApplication(web.Application):' | |||||
243 | # set the URL that will be redirected from `/` |
|
243 | # set the URL that will be redirected from `/` | |
244 | handlers.append( |
|
244 | handlers.append( | |
245 | (r'/?', web.RedirectHandler, { |
|
245 | (r'/?', web.RedirectHandler, { | |
246 |
'url' : |
|
246 | 'url' : settings['default_url'], | |
247 | 'permanent': False, # want 302, not 301 |
|
247 | 'permanent': False, # want 302, not 301 | |
248 | }) |
|
248 | }) | |
249 | ) |
|
249 | ) | |
@@ -816,6 +816,9 b' class NotebookApp(BaseIPythonApplication):' | |||||
816 | if self.allow_origin_pat: |
|
816 | if self.allow_origin_pat: | |
817 | self.tornado_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat) |
|
817 | self.tornado_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat) | |
818 | self.tornado_settings['allow_credentials'] = self.allow_credentials |
|
818 | self.tornado_settings['allow_credentials'] = self.allow_credentials | |
|
819 | # ensure default_url starts with base_url | |||
|
820 | if not self.default_url.startswith(self.base_url): | |||
|
821 | self.default_url = url_path_join(self.base_url, self.default_url) | |||
819 |
|
822 | |||
820 | self.web_app = NotebookWebApplication( |
|
823 | self.web_app = NotebookWebApplication( | |
821 | self, self.kernel_manager, self.contents_manager, |
|
824 | self, self.kernel_manager, self.contents_manager, |
General Comments 0
You need to be logged in to leave comments.
Login now