mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Update page / tab title when navigating
This commit is contained in:
parent
611762b255
commit
386b3a248a
@ -412,6 +412,10 @@ define([
|
||||
$('body').attr('data-notebook-path', path);
|
||||
// Update the file tree list without reloading the page
|
||||
this.load_list();
|
||||
// Update the page title so the browser tab reflects it
|
||||
// Match how the title appears with a trailing slash or
|
||||
// "Home" if the page loads from the server.
|
||||
$('title').text(path ? path+'/' : i18n.msg._("Home"));
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user