Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Open home in a new tab instead of replacing the current one (#10066)

Trevor Manzfa89c80e116e
diff --git a/frontend/src/components/editor/actions/useNotebookActions.tsx b/frontend/src/components/editor/actions/useNotebookActions.tsx
index e5502e7d06..fd9b340fc0 100644
--- a/frontend/src/components/editor/actions/useNotebookActions.tsx
+++ b/frontend/src/components/editor/actions/useNotebookActions.tsx
@@ -688,13 +688,13 @@ export function useNotebookActions() {
{
divider: true,
icon: <Home size={14} strokeWidth={1.5} />,
- label: "Return home",
+ label: "Open home",
// If file is in the url, then we ran `marimo edit`
// without a specific file
hidden: !location.search.includes("file"),
handle: () => {
const withoutSearch = document.baseURI.split("?")[0];
- window.open(withoutSearch, "_self");
+ window.open(withoutSearch, "_blank", "noopener");
},
},