Skip to content

Commit

Permalink
Testing redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
rfraposa committed Mar 31, 2022
1 parent a18a7ab commit fabf9a9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ const config = {
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/query-language/agg-functions',
from: '/agg_functions',
},
],
createRedirects(existingPath) {
if (existingPath.includes('/engines/table_engines')) {
return [
existingPath.replace('/engines/table-engines', '/engines/table_engines'),
];
}
return undefined; // Return a falsy value: no redirect created
},
},
]
],
Expand Down

0 comments on commit fabf9a9

Please sign in to comment.