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}