Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

244
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda