Get treePath and mode from PageConfig as it can mutate at runtime.
Get treePath and mode from PageConfig as it can mutate at runtime.

jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab