Home
Support Forums

VueJS Route on Netlify

hi guys
this is my current situation: i have a static website created with VueJS and this is my routea
all working fine when i navigate

const routes = [
  {
path: '/',
name: 'Home',
component: Home
  },
  {
path: '/erasmus',
name: 'erasmus',
component: Erasmus
  },
]

the problem occurs when i give my website link to others

if i give them mydomain.it/erasmus they are redirected to the home page and not to Erasmus page

while instead i give them link with “www” (ie www.mydomain.io/erasmus) al works fine

i think the problem is on redirect file that is currently like follow

/* /index.html 200

is it OK and the problem is somewhere else or i need to edit it? how?

thanks

hi there, before we dig in, did you see this brand new guide on debugging redirects?

I strongly suggest you give it a thorough read through and see if this fixes your problem:

if not, please post again, and we’ll try and troubleshoot.

i read it but cant figure out what’s the problem

Unfortunately, I’m no Vue whiz however this discussion shows that that should be the only rule you need. I’d consider looking in to Vue and whether any other specific configuration will be necessary!