File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -123,22 +123,9 @@ export default defineClientConfig({
123123 addDynamicRoute ( "/server/kubernetes-operator/:version" , to => `/server/kubernetes-operator/${ to . params . version } /getting-started/` ) ;
124124
125125 addDynamicRoute ( '/clients/grpc/:lang/:version' , to => `/clients/grpc/${ to . params . lang } /${ to . params . version } /getting-started.html` ) ;
126- addDynamicRoute ( '/clients/grpc/:lang/:version/' , to => `/clients/grpc/${ to . params . lang } /${ to . params . version } /getting-started.html` ) ;
127-
128- addDynamicRoute ( '/clients/grpc/:lang/' , to => {
129- const basePath = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. basePath
130- const path = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. versions [ 0 ] ?. path
131- const version = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. versions [ 0 ] ?. startPage
132-
133- return `/${ basePath } /${ path } /${ version } ` ;
134- } )
135-
136126 addDynamicRoute ( '/clients/grpc/:lang' , to => {
137- const basePath = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. basePath
138- const path = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. versions [ 0 ] ?. path
139- const version = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. versions [ 0 ] ?. startPage
140-
141- return `/${ basePath } /${ path } /${ version } ` ;
127+ const version = __VERSIONS__ . all . find ( x => x . id === `${ to . params . lang } -client` ) ?. versions [ 0 ] ?. path
128+ return `/clients/grpc/${ to . params . lang } /${ version } /getting-started.html` ;
142129 } )
143130
144131 addDynamicRoute ( "/server/:version" , to => `/server/${ to . params . version } /quick-start/` ) ;
@@ -204,4 +191,4 @@ export default defineClientConfig({
204191 } ) ;
205192
206193 } ,
207- } ) ;
194+ } ) ;
You can’t perform that action at this time.
0 commit comments