fix: fallback site menu mt_idx when mapping is inconsistent

When site menu resolves to an id with no rows, retry with legacy site mt_idx=4 and surface fallback state in debug output.

Made-with: Cursor
This commit is contained in:
taekyoungc
2026-04-08 17:26:04 +09:00
parent f68f135446
commit b99c108aeb
2 changed files with 23 additions and 5 deletions

View File

@@ -53,7 +53,8 @@ $adminMenuListResolveHref = static function (string $rawLink) use ($adminMenusNa
requested_mt_idx=<?= esc((string) ($debugInfo['requested_mt_idx'] ?? '')) ?>,
resolved_mt_idx=<?= esc((string) ($debugInfo['resolved_mt_idx'] ?? '')) ?>,
resolved_mt_code=<?= esc((string) ($debugInfo['resolved_mt_code'] ?? '')) ?>,
list_count=<?= esc((string) ($debugInfo['list_count'] ?? '')) ?>
list_count=<?= esc((string) ($debugInfo['list_count'] ?? '')) ?>,
fallback_applied=<?= esc((string) ($debugInfo['fallback_applied'] ?? 'N')) ?>
</section>
<?php endif; ?>