Skip to content

Commit 5e0ce6c

Browse files
authored
fix: redirects (#2100)
1 parent f6f19fc commit 5e0ce6c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docusaurus.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,8 @@ const config: Config = {
216216
}
217217
],
218218
createRedirects(existingPath) {
219-
const regex = /^\/guides\/community\/rfcs\/(.+)/;
220-
const match = existingPath.match(regex);
221-
if (match) {
222-
return `/developer/community/rfcs/${match[1]}`;
219+
if (existingPath?.includes('/guides/community/rfcs/')) {
220+
return existingPath.replace('/guides/community/rfcs/', '/developer/community/rfcs/');
223221
}
224222
return undefined;
225223
}

0 commit comments

Comments
 (0)