Remove dummy file and redirects to simulate 2.7 URLs

This commit is contained in:
Billy Tat
2023-06-06 16:00:23 -07:00
parent 23684b754d
commit da47f7d411
2 changed files with 0 additions and 48 deletions
-16
View File
@@ -1,16 +0,0 @@
---
title: v2.7
description: Dummy file used to redirect to the base url
---
<!-- Redirect plugin currently does not allow the final segment of a url (e.g. /v2.7/faq is valid, but /v2.7 is not)
to contain a period so this method is used to to allow users to access baseurl/v2.7 and be redirected to baseurl
releaseTask: when a new minor version is released, the name of this file and the title need to be updated.
-->
import {Redirect} from '@docusaurus/router';
const Home = () => {
return <Redirect to="/" />;
};
-32
View File
@@ -166,38 +166,6 @@ module.exports = {
{
fromExtensions: ['html', 'htm'],
redirects: [
{ // Redirects for links in UI (start)
to: '/faq/telemetry/',
from: '/v2.7/faq/telemetry/'
},
{
to: '/pages-for-subheaders/monitoring-v2-configuration',
from: '/v2.7/pages-for-subheaders/monitoring-v2-configuration'
},
{
to: '/how-to-guides/new-user-guides/launch-kubernetes-with-rancher/rke1-vs-rke2-differences',
from: '/v2.7/how-to-guides/new-user-guides/launch-kubernetes-with-rancher/rke1-vs-rke2-differences'
},
{
to: '/how-to-guides/advanced-user-guides/monitoring-v2-configuration-guides/advanced-configuration/alertmanager',
from: '/v2.7/how-to-guides/advanced-user-guides/monitoring-v2-configuration-guides/advanced-configuration/alertmanager'
},
{
to: '/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/authentication-config/configure-google-oauth',
from: '/v2.7/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/authentication-config/configure-google-oauth'
}, // Redirects for links in UI (end)
{ // Redirects for AWS Marketplace (start)
to: '/integrations-in-rancher/cloud-marketplace/supportconfig',
from: '/v2.7/integrations-in-rancher/cloud-marketplace/supportconfig'
},
{
to: '/integrations-in-rancher/cloud-marketplace/aws-cloud-marketplace/adapter-requirements',
from: '/v2.7/integrations-in-rancher/cloud-marketplace/aws-cloud-marketplace/adapter-requirements'
},
{
to: '/integrations-in-rancher/cloud-marketplace/aws-cloud-marketplace/install-adapter',
from: '/v2.7/integrations-in-rancher/cloud-marketplace/aws-cloud-marketplace/install-adapter'
}, // Redirects for AWS Marketplace (end)
{ // Redirects for restructure from PR #234 (start)
to: '/faq/general-faq',
from: '/faq'