Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Los enlaces dinámicos Next.js i18n con /lang/slug/[id] obtienen el error 404

Cuando intento ir a la página /en/vacancies/13 - aparece el error 404
Mi proyecto se ve como: páginas/vacantes/archivo [id].
Si no uso i18n, simplemente vaya a /vacancies/1; si es el idioma predeterminado, no recibo el error

 export const getStaticPaths: GetStaticPaths<{ id: string }> = async () => { let paths; await axios.get(`https://career.tele2.kz/cms/vacancies`).then(response => { const prePaths = response.data.map((vacancy:any) => { const arr = [{ id: vacancy.id.toString(), locale: vacancy.locale }, ...vacancy.localizations]; arr.map( (it) => { return {params: it} }); return arr; }); const merged = [].concat.apply([], prePaths); paths = merged.map( (item:any) => { return {params: {id: item.id.toString(), locale: item.locale}} }) }); return { paths, fallback: false } };

este es mi getStaticPaths.
Mis enlaces parecen

 <Link href={asPath} locale="kz"> // or any different locale

¿Cómo puedo solucionar este error 404? no tengo directorios en paginas como en o kz

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!