[Vuejs]-VueJS3 extra "/" in route

0👍

remove / in the path property of route config.

<router-link :to="`/${post_data.link.trim()}`">

0👍

pls see the demo code here https://codesandbox.io/s/route-params-vue-router-4-examples-forked-q6d7t8?file=/src/App.vue

I think the issue is the value of post_data.link starts with a /

Leave a comment