docs: redirect existing 2.5 links to 2.5-legacy route

This commit is contained in:
Anton Georgiev 2023-10-03 11:46:34 -04:00
parent 19868f636f
commit cdd7b7862f

View File

@ -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;
},
}