Fix org name not showing in tab title, homepage, and backend pages

The browser tab title, homepage "Welcome to..." heading, and the
backend status/API docs pages all had the "Cross Code" default
hardcoded instead of reading the configured org_name setting.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-22 21:09:35 +02:00
co-authored by Claude Sonnet 5
parent c84cc257d0
commit bdae0c6b08
4 changed files with 34 additions and 10 deletions
+3 -2
View File
@@ -44,10 +44,11 @@ async function getServerSettings(): Promise<SiteSettings> {
export async function generateMetadata(): Promise<Metadata> {
const settings = await getServerSettings();
const faviconUrl = settings.favicon_url ? resolveToApiOrigin(settings.favicon_url) : null;
const displayName = settings.org_name || appName;
return {
title: appName,
description: `Manage and register for events with ${appName}`,
title: displayName,
description: `Manage and register for events with ${displayName}`,
icons: {
icon: faviconUrl || "/favicon.ico",
},