From d179aeb9ed146236f4f84331c32d3f2d6fc80753 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 31 May 2026 13:08:37 +0800 Subject: [PATCH] fix: user_logined handler checks Router before loading dashboard Changed the user_logined bind from urlwidget action to script action that calls sageOnLogin(dashboardUrl). This prevents the dashboard from overwriting the Router-restored page when the URL has a ?page= param. Fixes: F5 refresh on deep links (e.g. ?page=/rbac/users) always showing dashboard instead of the intended page. --- wwwroot/index.ui | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index d60bedf..ce884a6 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -160,12 +160,9 @@ { "wid": "app", "event": "user_logined", - "actiontype": "urlwidget", + "actiontype": "script", "target": "self", - "options": { - "url": "{{entire_url('/dashboard_for_sage/index.ui')}}" - }, - "mode": "replace" + "script": "sageOnLogin('{{entire_url('/dashboard_for_sage/index.ui')}}')" } ], "subwidgets": [