From 6f80ea56dfa1b1857c674c2515412f8d5fce1714 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Mon, 21 Apr 2025 19:26:24 +0100 Subject: [PATCH] fix --- apps/client/src/pages/share/shared-page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/client/src/pages/share/shared-page.tsx b/apps/client/src/pages/share/shared-page.tsx index 5e96b183..93493475 100644 --- a/apps/client/src/pages/share/shared-page.tsx +++ b/apps/client/src/pages/share/shared-page.tsx @@ -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() {
{`${data?.page?.title || t("untitled")}`} - {!data?.share.searchIndexing && } + {!data?.share.searchIndexing && ( + + )}