New request
#21079: [bug]: Saved view lost when switching sections
We'll provision a sandbox, run an agent against the issue, and open a draft PR. You can pull the branch and iterate from there.
Issue
sonarly:high
Bug Description
Actually, i was looking into #20840 but then I found a separate issue that made it hard to tell whether filters were actually persisted.
Steps
- Open Opportunities (or any object).
- Add a filter (e.g. Stage) and use Save as new view.
- Confirm the URL updates with the new viewId and the list is filtered.
- Navigate to another section (e.g. People).
- Return to the Opportunities section.
- You will notice that the URL reverts to default and list showing the unfiltered data.
https://github.com/user-attachments/assets/5d1b0d78-750a-430a-b08b-c214d52f63d9
Expected behavior
Return to the same saved view with filters still applied (same viewId in the URL).
Actual
The URL reverts to the default “All …” (index) view, and the list shows the unfiltered data. The filter looked “lost” even after Save as new view
Assessmentadvisory
bug●● medium90% confidence
Navigating away from a saved view and back resets the URL and state to the default unfiltered index view.
Likely files
- packages/twenty-front/src/modules/views/hooks/useViewStates.ts
- packages/twenty-front/src/modules/object-record/hooks/useRecordIndexPage.ts
- packages/twenty-front/src/modules/navigation/hooks/useNavigate.ts
Create the request