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

105
Views
Nuxtjs bad routing in Netlify

I have a NuxtJs (vue) application in Netlify, when I redirect to other pages, It will to concat the last page and the next.

For example:

https://page-example/register

I'm in this page, then I redirect to the next page with

this.$router.push("confirmationsend");

In local I get this url :

https://localhost:3001/confirmationsend

but in Netlify I get this url:

https://page-example/register/confirmationsend

And NuxtJs can't resolve this routing.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

You could either be pushing a path, like this

this.$router.push('/confirmationsend')
// equivalent to this.$router.push({ path: '/confirmationsend' })

or use the name property (you can find the name in either your router file if you got one or in the Vue devtools)

$router.push({ name: 'confirmationsend' })

As shown in the Vue router documentation.
Mixing both (name + path) is usually not a good idea since a push without a / is by default meaning "append it to my current route" in the context of a History push.

Hence why I do recommend any of the snippets above to be more explicit regarding what you're trying to tell to the Vue router/various hosting platforms.

about 4 years ago · Santiago Gelvez 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!