Answer the question
In order to leave comments, you need to log in
How to remove slash in Vue Router?
Hello.
There is an application with localization. The locale is always in the url.
localhost/:locale
router.js file
{
path: '/:locale',
name: 'home',
redirect: {name: 'mainPage'},
component: () => import('Views/index'),
children: [
{
path: '',
name: 'mainPage',
component: () => import('Views/mainPage')
},
{
path: 'rooms',
name: 'rooms',
component: () => import('Views/rooms')
},
localhost/en/rooms
localhost/en/
<router-view>
in several ways, but I could not achieve the desired result ( 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