diff --git a/src/pages/p/[id].tsx b/src/pages/p/[id].tsx
index a3a910cf1..66aa990df 100644
--- a/src/pages/p/[id].tsx
+++ b/src/pages/p/[id].tsx
@@ -4,23 +4,25 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
-import React from 'react'
+import React, { Fragment } from 'react'
import { useLoadNoteFromServer } from '../../components/editor-page/hooks/useLoadNoteFromServer'
import { ShowIf } from '../../components/common/show-if/show-if'
import { EditorToRendererCommunicatorContextProvider } from '../../components/editor-page/render-context/editor-to-renderer-communicator-context-provider'
import { SlideShowPageContent } from '../../components/slide-show-page/slide-show-page-content'
-import { useDocumentTitleWithNoteTitle } from '../../hooks/common/use-document-title-with-note-title'
+import { NoteAndAppTitleHead } from '../../components/layout/note-and-app-title-head'
export const SlideShowPage: React.FC = () => {
const [error, loading] = useLoadNoteFromServer()
- useDocumentTitleWithNoteTitle()
return (
-
-
-
-
-
+
+
+
+
+
+
+
+
)
}
diff --git a/src/pages/s/[id].tsx b/src/pages/s/[id].tsx
index 807697ba4..70296583e 100644
--- a/src/pages/s/[id].tsx
+++ b/src/pages/s/[id].tsx
@@ -6,7 +6,6 @@
import React from 'react'
import { useApplyDarkMode } from '../../hooks/common/use-apply-dark-mode'
-import { useDocumentTitleWithNoteTitle } from '../../hooks/common/use-document-title-with-note-title'
import { MotdModal } from '../../components/common/motd-modal/motd-modal'
import { ShowIf } from '../../components/common/show-if/show-if'
import { AppBar, AppBarMode } from '../../components/editor-page/app-bar/app-bar'
@@ -16,16 +15,17 @@ import { LoadingNoteAlert } from '../../components/document-read-only-page/Loadi
import { EditorToRendererCommunicatorContextProvider } from '../../components/editor-page/render-context/editor-to-renderer-communicator-context-provider'
import { UiNotifications } from '../../components/notifications/ui-notifications'
import { DocumentReadOnlyPageContent } from '../../components/document-read-only-page/document-read-only-page-content'
+import { NoteAndAppTitleHead } from '../../components/layout/note-and-app-title-head'
/**
* Renders a page that contains only the rendered document without an editor or realtime updates.
*/
export const DocumentReadOnlyPage: React.FC = () => {
useApplyDarkMode()
- useDocumentTitleWithNoteTitle()
const [error, loading] = useLoadNoteFromServer()
return (
+