diff --git a/packages/core/client/src/schema-component/antd/page/Page.tsx b/packages/core/client/src/schema-component/antd/page/Page.tsx index b6e4e4eb2b..b5f164ba53 100644 --- a/packages/core/client/src/schema-component/antd/page/Page.tsx +++ b/packages/core/client/src/schema-component/antd/page/Page.tsx @@ -19,7 +19,7 @@ import React, { FC, memo, useCallback, useContext, useEffect, useMemo, useRef, u import { ErrorBoundary } from 'react-error-boundary'; import { useTranslation } from 'react-i18next'; import { NavigateFunction, Outlet, useOutletContext } from 'react-router-dom'; -import { FormDialog } from '..'; +import { FormDialog, withSearchParams } from '..'; import { antTableCell } from '../../../acl/style'; import { CurrentTabUidContext, @@ -445,9 +445,9 @@ export function navigateToTab({ } if (isTabPage(pathname)) { - navigate(`${pathname.replace(/\/tabs\/[^/]+$/, `/tabs/${activeKey}`)}`, { replace: true }); + navigate(withSearchParams(`${pathname.replace(/\/tabs\/[^/]+$/, `/tabs/${activeKey}`)}`), { replace: true }); } else { - navigate(`${pathname}/tabs/${activeKey}`, { replace: true }); + navigate(withSearchParams(`${pathname}/tabs/${activeKey}`), { replace: true }); } }