From 367046942abd61af598c8005d6f90cb147b18603 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Thu, 30 Jun 2022 19:21:31 +0800 Subject: [PATCH] client: fix edit link --- packages/client/src/components/document/card/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/document/card/index.tsx b/packages/client/src/components/document/card/index.tsx index 56dd3653..93c61442 100644 --- a/packages/client/src/components/document/card/index.tsx +++ b/packages/client/src/components/document/card/index.tsx @@ -15,7 +15,10 @@ const { Text } = Typography; export const DocumentCard: React.FC<{ document: IDocument }> = ({ document }) => { const gotoEdit = useCallback(() => { - Router.push(`/wiki/${document.wikiId}/document/${document.id}/edit`); + Router.push({ + pathname: `/app/org/[organizationId]/wiki/[wikiId]/doc/[documentId]/edit`, + query: { organizationId: document.organizationId, wikiId: document.wikiId, documentId: document.id }, + }); }, [document]); return (