diff --git a/apps/dashboard/src/hooks/use-activity-url-state.ts b/apps/dashboard/src/hooks/use-activity-url-state.ts index 185b3e5b34d..82971c71f73 100644 --- a/apps/dashboard/src/hooks/use-activity-url-state.ts +++ b/apps/dashboard/src/hooks/use-activity-url-state.ts @@ -91,6 +91,10 @@ export function useActivityUrlState(): ActivityUrlState & { newParams.set('dateRange', data.dateRange); } + if (searchParams.get('page')) { + newParams.set('page', searchParams.get('page') || '0'); + } + setSearchParams(newParams, { replace: true }); }, [activityItemId, setSearchParams]