Header: enlaces internos con <Link> (prefijo de idioma)
Los enlaces internos del header eran <a> planos sin prefijo (/download-client…); ahora usan <Link> de next-intl → /es/download-client, /es/changelogs, reino, jugadores, videos, ayuda y los logos. Externos (WOTLK DB) y el logout (route handler) siguen como <a>. Resuelve también los avisos no-html-link-for-pages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -57,10 +57,10 @@ export function SiteHeader({
|
||||
</div>
|
||||
<div className="nav-dropdown-content">
|
||||
<p>
|
||||
<a href="/download-client">CLIENTE</a>
|
||||
<Link href="/download-client">CLIENTE</Link>
|
||||
</p>
|
||||
<p>
|
||||
<a href="/download-addons">ADDONS</a>
|
||||
<Link href="/download-addons">ADDONS</Link>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -71,16 +71,14 @@ export function SiteHeader({
|
||||
</div>
|
||||
<div className="nav-dropdown-content">
|
||||
<p>
|
||||
<a href="/changelogs">
|
||||
CHANGELOG
|
||||
</a>
|
||||
<Link href="/changelogs">CHANGELOG</Link>
|
||||
</p>
|
||||
<p>
|
||||
<a href={realmHref}>REINO</a>
|
||||
<Link href={realmHref}>REINO</Link>
|
||||
</p>
|
||||
{loggedIn && (
|
||||
<p>
|
||||
<a href={playersHref}>JUGADORES</a>
|
||||
<Link href={playersHref}>JUGADORES</Link>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
@@ -100,11 +98,11 @@ export function SiteHeader({
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="/content-creators">VIDEOS</a>
|
||||
<Link href="/content-creators">VIDEOS</Link>
|
||||
</p>
|
||||
{loggedIn && (
|
||||
<p>
|
||||
<a href="/help">AYUDA</a>
|
||||
<Link href="/help">AYUDA</Link>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
@@ -133,22 +131,22 @@ export function SiteHeader({
|
||||
</div>
|
||||
|
||||
{/* eslint-disable @next/next/no-img-element */}
|
||||
<a href="/">
|
||||
<Link href="/">
|
||||
<img
|
||||
className="nw-long-logo"
|
||||
src="/nw-themes/nw-ryu/nw-images/nw-logos/nw-long-logo.webp"
|
||||
alt={SERVER_NAME}
|
||||
title={SERVER_NAME}
|
||||
/>
|
||||
</a>
|
||||
<a href={`/${locale}`}>
|
||||
</Link>
|
||||
<Link href="/">
|
||||
<img
|
||||
className="nw-logo"
|
||||
src="/nw-themes/nw-ryu/nw-images/nw-logos/nw-logo.webp"
|
||||
alt="NW"
|
||||
title="NW"
|
||||
/>
|
||||
</a>
|
||||
</Link>
|
||||
{/* eslint-enable @next/next/no-img-element */}
|
||||
</header>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user