From 0783dd52017f65747473cef43d59b17ce6cac3bc Mon Sep 17 00:00:00 2001 From: Dharik Patel Date: Fri, 7 Oct 2016 22:17:59 -0500 Subject: [PATCH] Changed dynamic segment to userId :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? --- docs/en/essentials/named-routes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/essentials/named-routes.md b/docs/en/essentials/named-routes.md index 65b728e23..2c8359736 100644 --- a/docs/en/essentials/named-routes.md +++ b/docs/en/essentials/named-routes.md @@ -6,7 +6,7 @@ Sometimes it is more convenient to identify a route with a name, especially when const router = new VueRouter({ routes: [ { - path: '/user/:id', + path: '/user/:userId', name: 'user', component: User }