Renombrar /login -> /log-in en toda la web (/login da 404)

Mueve la página de login a /log-in y actualiza todas las referencias (enlace
CONECTAR del header y los redirect de auth de ~45 páginas). /login ahora da 404.
La API /api/auth/login no se toca (solo la ruta de página).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-14 21:03:31 +00:00
parent 14125dbd72
commit 20e1d5a6b5
49 changed files with 67 additions and 52 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export function ConfirmClient({
<span className="ok-form-response">{t('success')}</span>
{showLogin && (
<p style={{ marginTop: 16 }}>
<Link href="/login">{t('goLogin')}</Link>
<Link href="/log-in">{t('goLogin')}</Link>
</p>
)}
</>
+1 -1
View File
@@ -12,7 +12,7 @@ export async function ReviveServiceContent({ locale }: { locale: string }) {
setRequestLocale(locale)
const t = await getTranslations('Services')
const session = await getSession()
if (!session.bnetId) redirect({ href: '/login', locale })
if (!session.bnetId) redirect({ href: '/log-in', locale })
if (!session.username) redirect({ href: '/select-account', locale })
const chars = await getGameCharacters(session.accountId!)
+1 -1
View File
@@ -16,7 +16,7 @@ export async function ServicePageContent({ service, locale }: { service: string;
const t = await getTranslations('Paid')
const session = await getSession()
if (!session.bnetId) redirect({ href: '/login', locale })
if (!session.bnetId) redirect({ href: '/log-in', locale })
if (!session.username) redirect({ href: '/select-account', locale })
const [chars, price] = await Promise.all([getGameCharacters(session.accountId!), cfg!.price({})])
+2 -2
View File
@@ -49,7 +49,7 @@ export function SiteHeader({
{loggedIn ? (
<Link href="/">{t('header.home')}</Link>
) : (
<Link href="/register">{t('header.register')}</Link>
<Link href="/create-account">{t('header.register')}</Link>
)}
<div className="nav-dropdown">
@@ -124,7 +124,7 @@ export function SiteHeader({
</div>
</div>
) : (
<Link href="/login" className="last">
<Link href="/log-in" className="last">
{t('header.login')}
</Link>
)}