[Vuejs]-Why does $router.push({ name: 'summoner', params: { summonerName: summonerName }}) leads to url /summoner/username/ instead of /summoner/username?

0👍

Here is a discussion about the issue on github https://github.com/vuejs/vue-router/issues/1753

And the solution is to add pathToRegexpOptions: { strict: true } to your routs.

A fiddle by Josh Deltener which shows an example: http://jsfiddle.net/L7hscd8h/9377/

Leave a comment