|
|
@@ -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;
|