##// END OF EJS Templates
don't test for .ipynb in redirect handler...
MinRK -
Show More
@@ -614,8 +614,8 b' class NotebookRedirectHandler(AuthenticatedHandler):'
614 @authenticate_unless_readonly
614 @authenticate_unless_readonly
615 def get(self, notebook_name):
615 def get(self, notebook_name):
616 app = self.application
616 app = self.application
617 if notebook_name.endswith('.ipynb'):
617 # strip trailing .ipynb:
618 notebook_name = notebook_name[:-6]
618 notebook_name = os.path.splitext(notebook_name)[0]
619 notebook_id = app.notebook_manager.rev_mapping.get(notebook_name, '')
619 notebook_id = app.notebook_manager.rev_mapping.get(notebook_name, '')
620 if notebook_id:
620 if notebook_id:
621 url = self.settings.get('base_project_url', '/') + notebook_id
621 url = self.settings.get('base_project_url', '/') + notebook_id
General Comments 0
You need to be logged in to leave comments. Login now