From 4314a240a9381933710fd2edf73f1c3b58197d8f Mon Sep 17 00:00:00 2001 From: ccamel Date: Tue, 13 Feb 2024 21:58:33 +0100 Subject: [PATCH] feat(academy): redirected /academy -> /academy/overview --- docusaurus.config.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index e7892aea299..5a877d5ed8f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -180,7 +180,9 @@ const config = { { type: 'docsVersionDropdown', position: 'right', - dropdownItemsAfter: [{ to: '/ontology/schemas/credential-dataset-description', label: 'Latest version' }], + dropdownItemsAfter: [ + { to: '/ontology/schemas/credential-dataset-description', label: 'Latest version' } + ], docsPluginId: 'ontology', dropdownActiveClassDisabled: true }, @@ -375,6 +377,17 @@ const config = { path: 'commands', routeBasePath: 'commands/' } + ], + [ + '@docusaurus/plugin-client-redirects', + { + redirects: [ + { + to: '/academy/overview', + from: '/academy' + } + ] + } ] ], scripts: ['/js/matomo.js', '/js/redirect.js']