This commit is contained in:
Philipinho
2025-04-21 19:26:24 +01:00
parent 0ff41d06fa
commit 6f80ea56df

View File

@ -21,8 +21,7 @@ export default function SingleSharedPage() {
useEffect(() => {
if (shareId && data) {
if (data.share.key !== shareId) {
// affects parent share, what to do?
navigate(`/share/${data.share.key}/${pageSlug}`);
navigate(`/share/${data.share.key}/${pageSlug}`, { replace: true });
}
}
}, [shareId, data]);
@ -42,7 +41,9 @@ export default function SingleSharedPage() {
<div>
<Helmet>
<title>{`${data?.page?.title || t("untitled")}`}</title>
{!data?.share.searchIndexing && <meta name="robots" content="noindex" />}
{!data?.share.searchIndexing && (
<meta name="robots" content="noindex" />
)}
</Helmet>
<Container size={900} p={0}>