Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix issue #4985: [Bug]: Cannot exit the session when on Jupyter or Browser tab in the UI (#4986)

OpenHands27cd507cd21a
diff --git a/frontend/src/routes/_oh.tsx b/frontend/src/routes/_oh.tsx
index 9f0d57d566..875b54e920 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);
}}
>