@@ -207,7 +203,6 @@ export default function ShareModal({ readOnly }: ShareModalProps) {
disabled={readOnly}
/>
-
{t("Search engine indexing")}
diff --git a/apps/client/src/pages/share/shared-page.tsx b/apps/client/src/pages/share/shared-page.tsx
index 8cd69836..a574a614 100644
--- a/apps/client/src/pages/share/shared-page.tsx
+++ b/apps/client/src/pages/share/shared-page.tsx
@@ -21,7 +21,7 @@ export default function SingleSharedPage() {
useEffect(() => {
if (shareId && data) {
if (data.share.key !== shareId) {
- navigate(`/share/${data.share.key}/${pageSlug}`, { replace: true });
+ navigate(`/share/${data.share.key}/p/${pageSlug}`, { replace: true });
}
}
}, [shareId, data]);
diff --git a/apps/server/src/core/share/share-seo.controller.ts b/apps/server/src/core/share/share-seo.controller.ts
index 10493fcf..ecacecf0 100644
--- a/apps/server/src/core/share/share-seo.controller.ts
+++ b/apps/server/src/core/share/share-seo.controller.ts
@@ -19,7 +19,7 @@ export class ShareSeoController {
/*
* add meta tags to publicly shared pages
*/
- @Get([':shareId/:pageSlug', 'p/:pageSlug'])
+ @Get([':shareId/p/:pageSlug', 'p/:pageSlug'])
async getShare(
@Res({ passthrough: false }) res: FastifyReply,
@Req() req: FastifyRequest,
diff --git a/apps/server/src/main.ts b/apps/server/src/main.ts
index 80da8b06..95df255d 100644
--- a/apps/server/src/main.ts
+++ b/apps/server/src/main.ts
@@ -32,7 +32,7 @@ async function bootstrap() {
);
app.setGlobalPrefix('api', {
- exclude: ['robots.txt', 'share/:shareId/:pageSlug'],
+ exclude: ['robots.txt', 'share/:shareId/p/:pageSlug'],
});
const reflector = app.get(Reflector);