diff --git a/packages/ui/src/elements/CopyLocaleData/index.tsx b/packages/ui/src/elements/CopyLocaleData/index.tsx index 0c40ecd9a47..995a0bb5d74 100644 --- a/packages/ui/src/elements/CopyLocaleData/index.tsx +++ b/packages/ui/src/elements/CopyLocaleData/index.tsx @@ -77,10 +77,10 @@ export const CopyLocaleData: React.FC = () => { }) setCopying(false) - toggleModal(drawerSlug) router.push( `${serverURL}${admin}/${collectionSlug ? `collections/${collectionSlug}/${id}` : `globals/${globalSlug}`}?locale=${to}`, ) + toggleModal(drawerSlug) } catch (error) { toast.error(error.message) }