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:
@@ -0,0 +1,33 @@
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server'
|
||||
import { Link } from '@/i18n/navigation'
|
||||
import { PageShell } from '@/components/PageShell'
|
||||
import { LoginForm } from './LoginForm'
|
||||
|
||||
export default async function LoginPage({ params }: { params: Promise<{ locale: string }> }) {
|
||||
const { locale } = await params
|
||||
setRequestLocale(locale)
|
||||
const t = await getTranslations('Login')
|
||||
|
||||
return (
|
||||
<PageShell title={t('title')}>
|
||||
<div className="box-content">
|
||||
<div className="body-box-content centered">
|
||||
<LoginForm />
|
||||
<br />
|
||||
<p>
|
||||
<Link href="/recover">{t('forgot')}</Link>
|
||||
</p>
|
||||
<p>
|
||||
<Link href="/recover">{t('forgotActivation')}</Link>
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
{t('newHere')} <Link href="/create-account">{t('createAccount')}</Link>
|
||||
</p>
|
||||
<br />
|
||||
<p className="grey-info2">{t('publicNote')}</p>
|
||||
</div>
|
||||
</div>
|
||||
</PageShell>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user