Skip to content

Commit b14a451

Browse files
committed
Add URL redirect for Japanese docs
1 parent 41d124b commit b14a451

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docusaurus.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,15 @@ const config = {
227227
from: '/docs/3.11/scalardb-cluster-dotnet-client-sdk/overview',
228228
},
229229
],
230+
createRedirects(existingPath) {
231+
if (existingPath.includes('/ja-jp/docs')) {
232+
// Redirect from /docs/ja-jp/X to /ja-jp/docs/X.
233+
return [
234+
existingPath.replace('/ja-jp/docs', '/docs/ja-jp'),
235+
];
236+
}
237+
return undefined; // Return a falsy value: no redirect created
238+
},
230239
},
231240
],
232241
require.resolve('docusaurus-plugin-image-zoom'),

0 commit comments

Comments
 (0)