Skip to content

Commit 2c62d12

Browse files
authored
duplicated params in router rfc
1 parent 4ff05a8 commit 2c62d12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

active-rfcs/0028-router-active-link.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ const routes = [
7272
// empty child
7373
{ path: '' },
7474
// child with id
75-
{ path: 'child/:id' },
76-
{ path: 'child-second/:id' }
75+
{ path: 'child/:id2' },
76+
{ path: 'child-second/:id2' }
7777
]
7878
}
7979
]
@@ -179,7 +179,7 @@ const routes = [
179179
// empty child
180180
{ path: '' },
181181
// child with id
182-
{ path: 'child/:id', alias: 'c/:id' }
182+
{ path: 'child/:id2', alias: 'c/:id2' }
183183
]
184184
}
185185
]
@@ -215,7 +215,7 @@ const routes = [
215215
children: [
216216
// empty child
217217
{ path: '', alias: ['alias', '/p_:id'], name: 'child' },
218-
// child with absolute path. we need to add an `id` because the parent needs it
218+
// child with absolute path. We need to add an `id` because the parent needs it
219219
{ path: '/p_:id/absolute-a', alias: 'as-absolute-a' },
220220
// same as above but the alias is absolute
221221
{ path: 'as-absolute-b', alias: '/p_:id/absolute-b' }

0 commit comments

Comments
 (0)