From 3412827704c390836f02a2268d1efd777d34a37d Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 21 Mar 2026 22:59:48 +0100 Subject: [PATCH] [fix](trx-frontend-http): skip auto-appending rig_id when already in URL postPath() was duplicating rig_id on /select_rig calls, causing deserialization failure and silently dropping the rig switch. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index f5d8b7b..4c8a5dc 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -3302,7 +3302,8 @@ window.trxScheduleUiFrameJob = scheduleUiFrameJob; async function postPath(path) { // Auto-append rig_id so each tab targets its own rig. - if (lastActiveRigId) { + // Skip when the caller already included rig_id (e.g. /select_rig). + if (lastActiveRigId && !path.includes("rig_id=")) { const sep = path.includes("?") ? "&" : "?"; path = `${path}${sep}rig_id=${encodeURIComponent(lastActiveRigId)}`; }