Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: push (not replace) for Prompt/JIRA record selection so Back works (#2025)

Adam Eivy125b141e8524
diff --git a/client/src/pages/JiraReports.jsx b/client/src/pages/JiraReports.jsx
index f35d292131..e20833005b 100644
--- a/client/src/pages/JiraReports.jsx
+++ b/client/src/pages/JiraReports.jsx
@@ -161,7 +161,8 @@ export default function JiraReports() {
const p = new URLSearchParams(searchParams);
p.set('reportApp', appId);
p.set('reportDate', date);
- setSearchParams(p, { replace: true });
+ // Push (not replace) so Back returns to the previously-open report.
+ setSearchParams(p);
};
const loadApps = async () => {
diff --git a/client/src/pages/PromptManager.jsx b/client/src/pages/PromptManager.jsx
index 24df51a74f..55d91585d1 100644
--- a/client/src/pages/PromptManager.jsx
+++ b/client/src/pages/PromptManager.jsx
@@ -28,13 +28,14 @@ export default function PromptManager() {
setSearchParams(p, { replace: true });
};
// Selected stage / variable live in the URL (`?stage=` / `?var=`) so the open
- // record is deep-linkable and reload-safe — the same search-param convention as
- // the tab above (see useDrawerTab.js).
+ // record is deep-linkable and reload-safe. Unlike the `tab` param above (a view
+ // toggle that uses replace), record selection is a PUSH so Back returns to the
+ // previously-open record — matching Authors/Music/Sharing.
const setParam = (key, val) => {
const p = new URLSearchParams(searchParams);
if (val == null || val === '') p.delete(key);
else p.set(key, val);
- setSearchParams(p, { replace: true });
+ setSearchParams(p);
};
const selectedStage = searchParams.get('stage');
const selectedVar = searchParams.get('var');