Skip to content

Commit f30fddb

Browse files
authored
URL Incorrect path Issue (#436)
* Fix for URL Incorrect path * Added comments
1 parent 8b8182d commit f30fddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyterlab_server/handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ class NotFoundHandler(LabHandler):
179179
@lru_cache # noqa: B019
180180
def get_page_config(self) -> dict[str, Any]:
181181
"""Get the page config."""
182-
page_config = super().get_page_config()
182+
# Making a copy of the page_config to ensure changes do not affect the original
183+
page_config = super().get_page_config().copy()
183184
page_config["notFoundUrl"] = self.request.path
184185
return page_config
185186

0 commit comments

Comments
 (0)