From 3ef0b1db0162e37fe63362cfcec0f79397acc619 Mon Sep 17 00:00:00 2001 From: Sunil Singh Date: Tue, 2 Apr 2024 12:27:58 -0700 Subject: [PATCH] Adding redirects for new pages from old URL's and grouping more logically in the config file. Signed-off-by: Sunil Singh --- docusaurus.config.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 70055b8ff37..35720dbe5b7 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1693,10 +1693,6 @@ module.exports = { to: '/v2.8/api/v3-rancher-api-guide', from: '/v2.8/pages-for-subheaders/about-the-api' }, - { - to: '/v2.8/api/v3-rancher-api-guide', - from: '/v2.8/reference-guides/about-the-api' - }, { to: '/v2.8/how-to-guides/new-user-guides/manage-clusters/access-clusters', from: '/v2.8/pages-for-subheaders/access-clusters' @@ -3436,7 +3432,25 @@ module.exports = { { to: '/v2.7/reference-guides/best-practices/rancher-server/tuning-and-best-practices-for-rancher-at-scale', from: '/v2.7/reference-guides/best-practices/rancher-server/tips-for-scaling-rancher' + }, + // Redirects for restructure from PR #1147 (start) + { + to: '/v2.8/api/v3-rancher-api-guide', + from: '/v2.8/reference-guides/about-the-api' + }, + { + to: '/v2.8/api/api-tokens', + from: '/v2.8/reference-guides/about-the-api/api-tokens' + }, + { + to: '/api/v3-rancher-api-guide', + from: '/reference-guides/about-the-api' + }, + { + to: '/api/api-tokens', + from: '/reference-guides/about-the-api/api-tokens' } + // Redirects for restructure from PR #1147 (end) ], }, ],