From f30fddb8f5d3acb688a3c8a75e92c386b75a18dd Mon Sep 17 00:00:00 2001 From: Vishnutheep B Date: Wed, 14 Feb 2024 03:26:03 +0530 Subject: [PATCH] URL Incorrect path Issue (#436) * Fix for URL Incorrect path * Added comments --- jupyterlab_server/handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyterlab_server/handlers.py b/jupyterlab_server/handlers.py index 1aa241a..aeff694 100644 --- a/jupyterlab_server/handlers.py +++ b/jupyterlab_server/handlers.py @@ -179,7 +179,8 @@ class NotFoundHandler(LabHandler): @lru_cache # noqa: B019 def get_page_config(self) -> dict[str, Any]: """Get the page config.""" - page_config = super().get_page_config() + # Making a copy of the page_config to ensure changes do not affect the original + page_config = super().get_page_config().copy() page_config["notFoundUrl"] = self.request.path return page_config