From 421bbdefbeb0f0938482d82a79ac3e36f550fba2 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Tue, 19 May 2020 12:50:15 +0530 Subject: [PATCH] fix(client): add footer on learn home (#38830) --- client/utils/gatsby/layoutSelector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/utils/gatsby/layoutSelector.js b/client/utils/gatsby/layoutSelector.js index 91b98f3814..4130fb4ca1 100644 --- a/client/utils/gatsby/layoutSelector.js +++ b/client/utils/gatsby/layoutSelector.js @@ -22,7 +22,10 @@ export default function layoutSelector({ element, props }) { if (/^\/guide(\/.*)*/.test(pathname)) { console.log('Hitting guide for some reason. Need a redirect.'); } - if (/^\/learn(\/.*)*/.test(pathname)) { + if ( + /^\/learn(\/.*)*/.test(pathname) && + false === /^\/learn\/$|^\/learn$/.test(pathname) + ) { return ( {element}