yohei0125 3 лет назад
Родитель
Сommit
2968f2bb0d
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      packages/app/src/pages/[[...path]].page.tsx

+ 2 - 3
packages/app/src/pages/[[...path]].page.tsx

@@ -129,7 +129,6 @@ type Props = CommonProps & {
   pageWithMeta: IPageToShowRevisionWithMeta,
   // pageUser?: any,
   redirectFrom?: string;
-  identicalPagePathname?: string;
 
   // shareLinkId?: string;
   isLatestRevision?: boolean
@@ -248,7 +247,7 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
   useIsTrashPage(_isTrashPage(pageWithMeta?.data.path ?? ''));
   useIsUserPage(isUserPage(pageWithMeta?.data.path ?? ''));
   useIsNotCreatable(props.isForbidden || !isCreatablePage(pageWithMeta?.data.path ?? '')); // TODO: need to include props.isIdentical
-  useCurrentPagePath(props.isIdenticalPathPage ? props.identicalPagePathname : pageWithMeta?.data.path);
+  useCurrentPagePath(pageWithMeta?.data.path);
   useCurrentPathname(props.currentPathname);
   useEditingMarkdown(pageWithMeta?.data.revision?.body);
   const { data: grantData } = useSWRxIsGrantNormalized(pageId);
@@ -463,7 +462,7 @@ async function injectRoutingInformation(context: GetServerSidePropsContext, prop
   const page = props.pageWithMeta?.data;
 
   if (props.isIdenticalPathPage) {
-    props.identicalPagePathname = currentPathname;
+    // TBD
   }
   else if (page == null) {
     props.isNotFound = true;