Fix tree path builder

Frédéric Collonval 4 years ago
parent 57220b21da
commit 47e400bfcf
No known key found for this signature in database
GPG Key ID: B7D0EF991C4BBBD4

@ -556,13 +556,13 @@ const treePathUpdater: JupyterFrontEndPlugin<ITreePathUpdater> = {
if (treePath !== PageConfig.getOption('treePath')) {
const path = URLExt.join(
PageConfig.getOption('baseUrl') || '/',
PageConfig.getOption('frontendUrl'),
'retro',
'tree',
treePath
URLExt.encodeParts(treePath)
);
router.navigate(path, { skipRouting: true });
// Persist the new tree path to PageConfig as it is used elsewhere at runtime.
PageConfig.setOption('treePath', URLExt.encodeParts(treePath));
PageConfig.setOption('treePath', treePath);
}
}
return updateTreePath;

Loading…
Cancel
Save