From 6c3b9b616d5d54d3c629d6f191dc4b42b5735e52 Mon Sep 17 00:00:00 2001 From: Valeriy Date: Sun, 7 Oct 2018 02:01:48 +0300 Subject: [PATCH] fix(learn): path to Intros --- client/utils/gatsby/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/utils/gatsby/index.js b/client/utils/gatsby/index.js index b697f9ef90..c866d30f8f 100644 --- a/client/utils/gatsby/index.js +++ b/client/utils/gatsby/index.js @@ -49,7 +49,7 @@ const getTemplateComponent = challengeType => views[viewTypes[challengeType]]; const getIntroIfRequired = (node, index, nodeArray) => { const next = nodeArray[index + 1]; - const isEndOfBlock = next && next.node.challengeOrder === 1; + const isEndOfBlock = next && next.node.challengeOrder === 0; let nextSuperBlock = ''; let nextBlock = ''; if (next) { @@ -58,7 +58,7 @@ const getIntroIfRequired = (node, index, nodeArray) => { nextBlock = block; } return isEndOfBlock - ? `/${dasherize(nextSuperBlock)}/${dasherize(nextBlock)}` + ? `/learn/${dasherize(nextSuperBlock)}/${dasherize(nextBlock)}` : ''; };