From 7f5dfbcf81e3230bd964c7f4eb8c9eff8af5e2cf Mon Sep 17 00:00:00 2001 From: openhands Date: Wed, 13 Nov 2024 22:13:40 +0000 Subject: [PATCH] Fix issue #4985: [Bug]: Cannot exit the session when on Jupyter or Browser tab in the UI --- frontend/src/routes/_oh.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/_oh.tsx b/frontend/src/routes/_oh.tsx index 9f0d57d5661f..875b54e920e8 100644 --- a/frontend/src/routes/_oh.tsx +++ b/frontend/src/routes/_oh.tsx @@ -243,7 +243,7 @@ export default function MainApp() { type="button" aria-label="All Hands Logo" onClick={() => { - if (location.pathname === "/app") + if (location.pathname.startsWith("/app")) setStartNewProjectModalIsOpen(true); }} >