diff --git a/server/hydrogen-render/render-page-html.js b/server/hydrogen-render/render-page-html.js index 4135af2a..95de82ab 100644 --- a/server/hydrogen-render/render-page-html.js +++ b/server/hydrogen-render/render-page-html.js @@ -17,6 +17,7 @@ function renderPageHtml({ assert(vmRenderContext); assert(pageOptions); assert(pageOptions.title); + assert(pageOptions.description); assert(pageOptions.entryPoint); assert(pageOptions.cspNonce); @@ -47,6 +48,7 @@ function renderPageHtml({ ${sanitizeHtml(`
If there was a #room_alias:server hash in the URL, we tried redirecting you to the right place.
+If there was a #room_alias:server hash in the URL, we tried redirecting you to the right place.
Otherwise, you're simply in a place that does not exist. You can ${sanitizeHtml(`go back to the homepage.`)} diff --git a/server/routes/room-directory-routes.js b/server/routes/room-directory-routes.js index d0180e09..7ae40572 100644 --- a/server/routes/room-directory-routes.js +++ b/server/routes/room-directory-routes.js @@ -75,6 +75,7 @@ router.get( const pageOptions = { title: `Matrix Public Archive`, + description: 'Browse thousands of rooms using Matrix...', entryPoint: 'client/js/entry-client-room-directory.js', locationHref: urlJoin(basePath, req.originalUrl), shouldIndex, diff --git a/server/routes/room-routes.js b/server/routes/room-routes.js index 1a998bfb..ff222954 100644 --- a/server/routes/room-routes.js +++ b/server/routes/room-routes.js @@ -898,6 +898,7 @@ router.get( const pageOptions = { title: `${roomData.name} - Matrix Public Archive`, + description: `View the history of ${roomData.name} in the Matrix Public Archive`, entryPoint: 'client/js/entry-client-hydrogen.js', locationHref: urlJoin(basePath, req.originalUrl), shouldIndex,