From f0dc73e33255b2973a41d476ffe523671e93eca7 Mon Sep 17 00:00:00 2001 From: librelad Date: Thu, 28 May 2026 16:12:48 +0100 Subject: [PATCH] fix(admin): Manage backups button navigates via the real SPA router The admin overview Manage backups action called window.librePortalSPA, a global that is never assigned, so the optional-chaining call silently no-op'd. The router is window.spaClean; point the call at it. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- .../libreportal/frontend/js/components/admin/admin-overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/libreportal/frontend/js/components/admin/admin-overview.js b/containers/libreportal/frontend/js/components/admin/admin-overview.js index 0794913..bd9b4c3 100644 --- a/containers/libreportal/frontend/js/components/admin/admin-overview.js +++ b/containers/libreportal/frontend/js/components/admin/admin-overview.js @@ -55,7 +55,7 @@ class AdminOverview { go(where) { if (where === 'backup') { - window.librePortalSPA?.navigate('/backup', true); + window.spaClean?.navigate('/backup', true); } else if (where === 'ssh' || where === 'security' || where === 'system') { const target = where === 'ssh' ? 'ssh-access' : where; window.history.pushState({}, '', window.adminPath(target));