I am using the router like this:
router.push({ name: 'home', query: { categoryId: category.id } })
And my route looks like this:
{
path: '/',
name: 'Home',
component: Home
},
Is it normal for the URL to have a slash before the query parameter? Even if it doesn’t matter functionality wise, I feel like localhost:8080?categoryId=2
looks better than localhost:8080/?categoryId=2
and was wondering if I could somehow remove the slash?