Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

239
Vistas
How to redirect to another path in Nuxt?

Hello I want to redirect to an internal path.

Example

https://mylink.com/some-page.html and my fetch link
https://mylink.com/another-page.html

I use router.replace but it adds the last link inside of the first one. How to fix this to replace the first link by the second?

I use

window.location

Is it possible to do it with another solution thanks to vue router?

The idea is

params {'another-page'}

but the API returns the whole URL: https://mylink.com/another-page.html, not just the path.

How to achieve this?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

You can use this.$router.push('/another-page'); for internal links.

about 4 years ago · Juan Pablo Isaza Denunciar

0

You should probably take the received URL and cut the last part of it to have only the path. Then you could use the Vue router to move to the according page inside of your Nuxt app.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda