diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 34469717c6..e8b022c701 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -111,6 +111,11 @@ const config = { // creates new routes /dev/something pointing to /development redirect_list.push( path.replace("/development", "/dev") ); } + // redirect old links to the now modified url (includes -legacy) + if ( path.startsWith("/2.5") ) { + redirect_list.push( path.replace("/2.5", "/2.5-legacy") ); + } + return redirect_list; }, }