From 79476c0c89b40030afbe69465dba7408b1199e21 Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Tue, 11 Aug 2020 09:34:38 -0500 Subject: [PATCH] fix: redirects, sidebar bug --- next.config.js | 12 +++++++++++- src/components/side-nav.tsx | 2 +- src/pages/ecosystem/stacks-token-holders.md | 4 ++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index a5e8e21f..fbbb43b8 100755 --- a/next.config.js +++ b/next.config.js @@ -103,7 +103,7 @@ async function redirects() { }, { source: '/core/smart/testnet-node.html', - destination: '/smart-contracts/running-a-testnet-node', + destination: '/stacks-blockchain/testnet-node', permanent: true, }, { @@ -146,6 +146,11 @@ async function redirects() { destination: '/references/faqs', permanent: true, }, + { + source: '/faqs/allfaqs', + destination: '/references/faqs', + permanent: true, + }, { source: '/core/naming/pickname.html', destination: '/naming-services/choose-name', @@ -263,6 +268,11 @@ async function redirects() { permanent: true, }, { source: '/core/cmdLineRef.html', destination: '/references/blockstack-cli', permanent: true }, + { + source: '/core/smart/clarityref', + destination: '/references/clarity-language', + permanent: true, + }, { source: '/core/smart/clarityRef.html', destination: '/references/clarity-language', diff --git a/src/components/side-nav.tsx b/src/components/side-nav.tsx index 029202ab..3827ccaa 100644 --- a/src/components/side-nav.tsx +++ b/src/components/side-nav.tsx @@ -235,7 +235,7 @@ const Navigation = () => { }); } - if (currentSection.items && selected.items !== currentSection.items) { + if (currentSection?.items && selected.items !== currentSection.items) { setSelected(currentSection); } }, [router.pathname]); diff --git a/src/pages/ecosystem/stacks-token-holders.md b/src/pages/ecosystem/stacks-token-holders.md index ccfb13cb..1a99b1de 100644 --- a/src/pages/ecosystem/stacks-token-holders.md +++ b/src/pages/ecosystem/stacks-token-holders.md @@ -1,6 +1,6 @@ --- title: Stacks token holders -description: 'Blockstack token holder documentation' +description: Blockstack token holder documentation --- ## Introduction @@ -43,4 +43,4 @@ registered and when they will unlock. ## Have more questions? -For a list of frequent questions and answers about STX tokens, [see the Stacks token FAQs](https://docs.blockstack.org/faqs/allfaqs#stacks-token-questions). +For a list of frequent questions and answers about STX tokens, [see the Stacks token FAQs](/references/faqs/stacks-token).