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.
This commit is contained in:
parent
b28a2b4a76
commit
d179aeb9ed
@ -160,12 +160,9 @@
|
|||||||
{
|
{
|
||||||
"wid": "app",
|
"wid": "app",
|
||||||
"event": "user_logined",
|
"event": "user_logined",
|
||||||
"actiontype": "urlwidget",
|
"actiontype": "script",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"options": {
|
"script": "sageOnLogin('{{entire_url('/dashboard_for_sage/index.ui')}}')"
|
||||||
"url": "{{entire_url('/dashboard_for_sage/index.ui')}}"
|
|
||||||
},
|
|
||||||
"mode": "replace"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user