Vulcan icon indicating copy to clipboard operation
Vulcan copied to clipboard

Adding routes with no name leads to unexpected behaviour

Open eric-burel opened this issue 6 years ago • 2 comments
trafficstars

If I do this, I get 404 on the first 2 routes:

import MeetupCreation from '../components/MeetupCreation';
import MeetupList from '../components/MeetupList'
import MeetupAdminList from '../components/MeetupAdminList'

addRoute({ path: '/create', component: MeetupCreation })
addRoute({ path: '/list', component: MeetupList })
addRoute({ path: '/admin/list', component: MeetupAdminList })

Only the last route is created.

Edit: the issue is the lack of a name, it should raise a warning or use the "/path" as the default name

eric-burel avatar Nov 17 '19 10:11 eric-burel

Might need to merge https://github.com/VulcanJS/Vulcan/pull/2389 before we fix this

eric-burel avatar Dec 02 '19 15:12 eric-burel

Hey, I would like to work on this issue , is it still open?

kajaveaniruddha avatar Jan 05 '24 06:01 kajaveaniruddha