Skip to content

Commit cc9d220

Browse files
dharikposva
authored andcommitted
Changed dynamic segment to userId (#739)
:to="" and push() were using param name "userId" but the route path was using "/user/:id". This is confusing because how would params {userId:123} translate to :id?
1 parent bdbaf2a commit cc9d220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/essentials/named-routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Sometimes it is more convenient to identify a route with a name, especially when
66
const router = new VueRouter({
77
routes: [
88
{
9-
path: '/user/:id',
9+
path: '/user/:userId',
1010
name: 'user',
1111
component: User
1212
}

0 commit comments

Comments
 (0)