diff --git a/export_template/edit/index.html b/export_template/edit/index.html
index c0fc9d35..a0190f62 100644
--- a/export_template/edit/index.html
+++ b/export_template/edit/index.html
@@ -4,7 +4,7 @@
Redirect to editable app
diff --git a/src/Components/App.tsx b/src/Components/App.tsx
index 2d21b883..67f9ccde 100644
--- a/src/Components/App.tsx
+++ b/src/Components/App.tsx
@@ -593,7 +593,7 @@ export async function runExportedApp({
// Get `appMode` from the URL query string
const urlParams = new URLSearchParams(window.location.search);
- let appMode = urlParams.get("mode") ?? "viewer";
+ let appMode = urlParams.get("_shinylive-mode") ?? "viewer";
if (!AppModes.includes(appMode)) {
console.warn(`[shinylive] Unrecognized app mode: ${appMode}`);