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

106
Views
Dynamic Routing Didn't Go to as Expected Routes

I'm using Vue Router in Vue project as a router and I have this routes :

0: {path: '/', component: {…}, children: Array(1)}
1: {path: '/readme', component: {…}, children: Array(1)}
2: {path: '/modal', component: {…}, children: Array(1)}
3: {path: '/table', component: {…}, children: Array(1)}
4: {path: '/:locale', component: {…}, children: Array(1), beforeEnter: ƒ}
5: {path: '/:locale/readme', component: {…}, children: Array(1), beforeEnter: ƒ}
6: {path: '/:locale/:all(.*)*', children: Array(1), component: ƒ, beforeEnter: ƒ}
7: {path: '/:locale/modal', component: {…}, children: Array(1), beforeEnter: ƒ}
8: {path: '/:locale/table', component: {…}, children: Array(1), beforeEnter: ƒ}
9: {path: '/:all(.*)*', children: Array(1), component: ƒ}
length: 10
[[Prototype]]: Array(0)

When I tried to http://localhost:4000/id/modal it does work, but when I tried to http://localhost:4000/id it always go to the /:all(.*)* instead. Why did that happen?

Also how could I change /:locale to OR logic like /(id/jp) , is that possible?

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!