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.
2 parents d996d60 + a1b48f4 commit 7b7fab1Copy full SHA for 7b7fab1
docusaurus.config.js
@@ -131,7 +131,19 @@ module.exports = {
131
to: '/docs/archive/working_with_teams'
132
}
133
],
134
-
+ createRedirects(existingPath) {
135
+ // For every canonical page under /docs/components/EFSPIntegration,
136
+ // create a redirect-from path under /docs/efiling so old URLs
137
+ // like /docs/efiling/... redirect to the new canonical pages.
138
+ if (existingPath.startsWith('/docs/components/EFSPIntegration')) {
139
+ const subPath = existingPath.substring('/docs/components/EFSPIntegration'.length);
140
+ // include both base and subpaths
141
+ if (subPath === '' || subPath.startsWith('/')) {
142
+ return ['/docs/efiling' + subPath];
143
+ }
144
145
+ return undefined;
146
+ },
147
148
},
149
0 commit comments