From aae5f3124a2d097d2ba2abdeeca9453361eaaa6d Mon Sep 17 00:00:00 2001 From: Laurie Barth Date: Mon, 9 Dec 2019 14:51:36 -0500 Subject: [PATCH] redirect and remove sidebar --- www/gatsby-node.js | 10 ++++++++++ www/src/data/sidebars/doc-links.yaml | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/www/gatsby-node.js b/www/gatsby-node.js index 0ffd13e363aae..ec0f89e9726d4 100644 --- a/www/gatsby-node.js +++ b/www/gatsby-node.js @@ -419,6 +419,16 @@ exports.createPages = ({ graphql, actions, reporter }) => { isPermanent: true, }) + /* This redirects from a now removed stub that + showed up in the first page of Google results. + Can be removed if SEO is no longer impacted. */ + + createRedirect({ + fromPath: `/docs/rendering-sidebar-navigation-dynamically/`, + toPath: `/docs/creating-dynamic-navigation/`, + isPermanent: true, + }) + Object.entries(startersRedirects).forEach(([fromSlug, toSlug]) => { createRedirect({ fromPath: `/starters${fromSlug}`, diff --git a/www/src/data/sidebars/doc-links.yaml b/www/src/data/sidebars/doc-links.yaml index 1445c23cfcf46..1eb44d45ad4aa 100644 --- a/www/src/data/sidebars/doc-links.yaml +++ b/www/src/data/sidebars/doc-links.yaml @@ -421,8 +421,6 @@ link: /docs/location-data-from-props/ - title: Creating Dynamic Navigation link: /docs/creating-dynamic-navigation/ - - title: Rendering Sidebar Navigation Dynamically* - link: /docs/rendering-sidebar-navigation-dynamically/ - title: Client-only Routes & User Authentication link: /docs/client-only-routes-and-user-authentication/ breadcrumbTitle: Client Routes & User Auth