Skip to content

Commit 41f73c6

Browse files
authored
fix: legacy link redirection (#659)
1 parent c5bdb36 commit 41f73c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ const config = {
237237
'@docusaurus/plugin-client-redirects',
238238
{
239239
createRedirects(existingPath) {
240-
if (existingPath.includes('/sdk/')) {
240+
if (existingPath.includes('/quick-start')) {
241241
// Redirect from /sdk/foo to /quick-start/foo
242-
return [existingPath.replace('/sdk/', '/quick-start/')];
242+
return existingPath.replace('/quick-start', '/sdk');
243243
}
244244
// eslint-disable-next-line unicorn/no-useless-undefined
245245
return undefined; // Return a falsy value: no redirect created

0 commit comments

Comments
 (0)