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 @@ -96,6 +96,7 @@ define([
96
96
this . sessions = { } ;
97
97
this . base_url = options . base_url || utils . get_body_data ( "baseUrl" ) ;
98
98
this . notebook_path = options . notebook_path || utils . get_body_data ( "notebookPath" ) ;
99
+ this . initial_notebook_path = this . notebook_path ;
99
100
this . contents = options . contents ;
100
101
if ( this . session_list && this . session_list . events ) {
101
102
this . session_list . events . on ( 'sessions_loaded.Dashboard' ,
@@ -351,7 +352,8 @@ define([
351
352
var that = this ;
352
353
// Add an event handler browser back and forward events
353
354
window . onpopstate = function ( e ) {
354
- var path = window . history . state ? window . history . state . path : '' ;
355
+ var path = ( window . history . state && window . history . state . path ) ?
356
+ window . history . state . path : that . initial_notebook_path ;
355
357
that . update_location ( path ) ;
356
358
} ;
357
359
var breadcrumb = $ ( '.breadcrumb' ) ;
You can’t perform that action at this time.
0 commit comments