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

241
Views
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 answers
Answer question

0

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

about 4 years ago · Juan Pablo Isaza Report

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 Report
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!