github →

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

  1. Open Opportunities (or any object).
  2. Add a filter (e.g. Stage) and use Save as new view.
  3. Confirm the URL updates with the new viewId and the list is filtered.
  4. Navigate to another section (e.g. People).
  5. Return to the Opportunities section.
  6. 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

This opens a fresh agent run and a draft PR for issue #21079.

Cancel