From cdd7b7862fb9d6aa9bc5b58bade5a803320cc347 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Tue, 3 Oct 2023 11:46:34 -0400 Subject: [PATCH] docs: redirect existing 2.5 links to 2.5-legacy route --- docs/docusaurus.config.js | 5 +++++ 1 file changed, 5 insertions(+) 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; }, }