Answer the question
In order to leave comments, you need to log in
How to make a named jump with a slash at the end?
There is component A and B:
{
path: '/:name1?/:name2?/',
name: A,
...
},
{
path: '/:name/',
name: B,
...
}
router.push({name: 'B', params: {name: 'test'}})
- Such a redirect will work, but without the slash at the end. router.push({path: '/test/')
- and this will add a slash, but will not go to component B Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question