Fix shortcut menu not selected when it is a URL link to an internal page #2439

This commit is contained in:
Kijin Sung 2024-12-08 22:18:22 +09:00
parent 27fb793080
commit 6e5ee53ea3

View file

@ -2178,7 +2178,7 @@ class MenuAdminController extends Menu
"normal_btn" => %s,
"hover_btn" => %s,
"active_btn" => %s,
"selected" => (array(%s) && in_array(Context::get("mid"), array(%s)) ? 1 : 0),
"selected" => ((%s === "Y" && %s === \RX_BASEURL . \RX_REQUEST_URL) || (array(%s) && in_array(Context::get("mid"), array(%s))) ? 1 : 0),
"expand" => %s,
"list" => array(%s),
"link" => (%s ? (array(%s) && in_array(Context::get("mid"), array(%s)) ? %s : %s) : "")' . PHP_EOL,
@ -2201,6 +2201,8 @@ class MenuAdminController extends Menu
var_export($normal_btn, true),
var_export($hover_btn, true),
var_export($active_btn, true),
var_export($is_shortcut, true),
var_export($url, true),
$selected,
$selected,
var_export($expand, true),