diff --git a/CHANGELOG.md b/CHANGELOG.md index ee9f23c2..3ff873ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to -🐛(frontend) table of content disappearing #982 -🐛(frontend) fix multiple EmojiPicker #1012 +-🐛(frontend) fix meta title #1017 ## [3.3.0] - 2025-05-06 diff --git a/src/frontend/apps/impress/src/pages/_app.tsx b/src/frontend/apps/impress/src/pages/_app.tsx index 2015f7ae..75596c5e 100644 --- a/src/frontend/apps/impress/src/pages/_app.tsx +++ b/src/frontend/apps/impress/src/pages/_app.tsx @@ -26,6 +26,7 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) { <> {t('Docs')} + { useCollaboration(doc?.id, doc?.content); const { t } = useTranslation(); - useEffect(() => { - if (doc?.title) { - setTimeout(() => { - document.title = `${doc.title} - ${t('Docs')}`; - }, 100); - } - }, [doc?.title, t]); - useEffect(() => { if (!docQuery || isFetching) { return; @@ -142,7 +134,21 @@ const DocPage = ({ id }: DocProps) => { ); } - return ; + return ( + <> + + + {doc.title} - {t('Docs')} + + + + + + ); }; const Page: NextPageWithLayout = () => {