Skip to content

Commit

Permalink
URL Incorrect path Issue (#436)
Browse files Browse the repository at this point in the history
* Fix for URL Incorrect path

* Added comments
  • Loading branch information
itsmevichu authored Feb 13, 2024
1 parent 8b8182d commit f30fddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyterlab_server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f30fddb

Please sign in to comment.