diff --git a/argilla-frontend/v1/infrastructure/services/useRoutes.ts b/argilla-frontend/v1/infrastructure/services/useRoutes.ts index b4f1c2ba45..b604e62484 100644 --- a/argilla-frontend/v1/infrastructure/services/useRoutes.ts +++ b/argilla-frontend/v1/infrastructure/services/useRoutes.ts @@ -133,9 +133,9 @@ export const useRoutes = () => { } else { window.location.href = where; } + } else { + router.push(where); } - - router.push(where); }; const getQuery = () => {