mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #5231 from minrk/rename-base-url
don't forget base_url when updating address bar in rename
This commit is contained in:
commit
1d869298fb
@ -126,15 +126,17 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
SaveWidget.prototype.update_address_bar = function(){
|
||||
var base_url = IPython.notebook.base_url;
|
||||
var nbname = IPython.notebook.notebook_name;
|
||||
var path = IPython.notebook.notebook_path;
|
||||
var state = {path : utils.url_join_encode(path, nbname)};
|
||||
var state = {path : path, name: nbname};
|
||||
window.history.replaceState(state, "", utils.url_join_encode(
|
||||
"/notebooks",
|
||||
base_url,
|
||||
"notebooks",
|
||||
path,
|
||||
nbname)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
SaveWidget.prototype.set_save_status = function (msg) {
|
||||
|
Loading…
Reference in New Issue
Block a user