mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 11:11:09 +10:00
fix
This commit is contained in:
@ -21,8 +21,7 @@ export default function SingleSharedPage() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (shareId && data) {
|
if (shareId && data) {
|
||||||
if (data.share.key !== shareId) {
|
if (data.share.key !== shareId) {
|
||||||
// affects parent share, what to do?
|
navigate(`/share/${data.share.key}/${pageSlug}`, { replace: true });
|
||||||
navigate(`/share/${data.share.key}/${pageSlug}`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [shareId, data]);
|
}, [shareId, data]);
|
||||||
@ -42,7 +41,9 @@ export default function SingleSharedPage() {
|
|||||||
<div>
|
<div>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{`${data?.page?.title || t("untitled")}`}</title>
|
<title>{`${data?.page?.title || t("untitled")}`}</title>
|
||||||
{!data?.share.searchIndexing && <meta name="robots" content="noindex" />}
|
{!data?.share.searchIndexing && (
|
||||||
|
<meta name="robots" content="noindex" />
|
||||||
|
)}
|
||||||
</Helmet>
|
</Helmet>
|
||||||
|
|
||||||
<Container size={900} p={0}>
|
<Container size={900} p={0}>
|
||||||
|
|||||||
Reference in New Issue
Block a user