File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ define([
102
102
this . sessions = { } ;
103
103
this . base_url = options . base_url || utils . get_body_data ( "baseUrl" ) ;
104
104
this . notebook_path = options . notebook_path || utils . get_body_data ( "notebookPath" ) ;
105
+ this . initial_notebook_path = this . notebook_path ;
105
106
this . contents = options . contents ;
106
107
if ( this . session_list && this . session_list . events ) {
107
108
this . session_list . events . on ( 'sessions_loaded.Dashboard' ,
@@ -358,7 +359,8 @@ define([
358
359
var that = this ;
359
360
// Add an event handler browser back and forward events
360
361
window . onpopstate = function ( e ) {
361
- var path = window . history . state ? window . history . state . path : '' ;
362
+ var path = ( window . history . state && window . history . state . path ) ?
363
+ window . history . state . path : that . initial_notebook_path ;
362
364
that . update_location ( path ) ;
363
365
} ;
364
366
var breadcrumb = $ ( '.breadcrumb' ) ;
You can’t perform that action at this time.
0 commit comments