From 77d0bfb5476a434a706cbde91b29ed96c3050c03 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Thu, 12 Nov 2026 22:42:03 +0100 Subject: [PATCH] Fix dashboard buttons posting to the wrong URL Forms with a field named "action" (play, pause) shadow the form.action property, so the fragment request went to /admin/[object HTMLInputElement]. Read the attribute instead. Co-Authored-By: Claude Sonnet 5.5 --- webroot/js/plenario.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webroot/js/plenario.js b/webroot/js/plenario.js index 2fb00cf..c0dd20c 100644 --- a/webroot/js/plenario.js +++ b/webroot/js/plenario.js @@ -2721,7 +2721,8 @@ if (submitter) { submitter.disabled = true; } - Fragments.request(form.action, { method: 'POST', body: new FormData(form) }) + // getAttribute: forms with a field named "action" (play/pause buttons) shadow the form.action property. + Fragments.request(form.getAttribute('action'), { method: 'POST', body: new FormData(form) }) .then(function (doc) { return handle(doc, source); }) .catch(function () { form.removeAttribute('aria-busy'); -- 2.54.1