We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b8e48a commit f6f19fcCopy full SHA for f6f19fc
docusaurus.config.ts
@@ -216,8 +216,10 @@ const config: Config = {
216
}
217
],
218
createRedirects(existingPath) {
219
- if (existingPath.startsWith('/guides/community/rfcs/')) {
220
- return existingPath.replace('/guides/community/rfcs/', '/developer/community/rfcs/');
+ const regex = /^\/guides\/community\/rfcs\/(.+)/;
+ const match = existingPath.match(regex);
221
+ if (match) {
222
+ return `/developer/community/rfcs/${match[1]}`;
223
224
return undefined;
225
0 commit comments