web-next: enlace REINO de la cabecera dinámico (/<slug>-realm)

El menú de la cabecera enlazaba a /novawow-realm fijo. Ahora Header (server)
calcula el slug desde realmlist (getRealmName + realmSlug) y lo pasa a
SiteHeader como realmHref → el enlace REINO apunta a /trinity-realm (o al
reino que haya). Acompaña a la ruta dinámica [realm].

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-13 12:41:44 +00:00
parent a9ae6d4506
commit cae1c224b0
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -16,9 +16,11 @@ const SERVER_NAME = 'NovaWoW'
export function SiteHeader({
loggedIn,
accountLabel,
realmHref,
}: {
loggedIn: boolean
accountLabel: string
realmHref: string
}) {
const router = useRouter()
const [open, setOpen] = useState(false)
@@ -83,7 +85,7 @@ export function SiteHeader({
</a>
</p>
<p>
<a href="/novawow-realm">REINO</a>
<a href={realmHref}>REINO</a>
</p>
{loggedIn && (
<p>