mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-27 05:28:22 +00:00
Update redirects
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
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="/" />;
|
||||||
|
};
|
||||||
+13
-1
@@ -136,7 +136,19 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
fromExtensions: ['html', 'htm'],
|
fromExtensions: ['html', 'htm'],
|
||||||
redirects: [
|
redirects: [
|
||||||
|
{ // 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',
|
to: '/faq/general-faq',
|
||||||
from: '/faq'
|
from: '/faq'
|
||||||
},
|
},
|
||||||
@@ -627,7 +639,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
to: '/integrations-in-rancher/opa-gatekeeper',
|
to: '/integrations-in-rancher/opa-gatekeeper',
|
||||||
from: '/explanations/integrations-in-rancher/opa-gatekeeper'
|
from: '/explanations/integrations-in-rancher/opa-gatekeeper'
|
||||||
},
|
}, // Redirects for restructure from PR #234 (end)
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user