I have a route in my VueRouter object that is:
{path: '/apples/:oranges', component: Example, props: (route) => ({oranges: route.params.oranges}).
When the oranges parameter includes a /, it isn't encoded in the URL which is causing problems. Spaces; however, are being encoded correctly (as %20). Why is this? Shouldn't vue-router be encoding all special characters correctly?
You might want to set the value of path as a string using single quotes:
{
path: '/apples/:oranges',
...
}