https://sonarly.com/issue/41689?type=bug
Object sidebar navigation routes users back to the object INDEX view instead of their last selected/saved view, making saved filters appear lost after section switching.
Fix: Implemented a surgical frontend fix so OBJECT sidebar navigation no longer forces the INDEX viewId.
What changed:
1) `getObjectNavigationMenuItemComputedLink` now builds the object record-index route without injecting any `viewId` query param.
- Before: it looked up INDEX view and appended `?viewId=<indexViewId>`.
- After: it returns only `RecordIndexPage` with `objectNamePlural`, allowing existing last-visited view resolution logic to apply.
2) Updated the caller in `getNavigationMenuItemComputedLink` to match the simplified OBJECT helper signature (removed unused `views` argument passing for OBJECT case).
3) Added a unit test:
- `getObjectNavigationMenuItemComputedLink.test.ts`
- Verifies OBJECT link is generated without `viewId`.
- Verifies missing metadata still returns empty string.
This preserves behavior for VIEW items (which should continue to include explicit `viewId`) while fixing the OBJECT sidebar regression that reset users to default/All view.
Authored by Sonarly by autonomous analysis (run 47561).