fix(client): add footer on learn home (#38830)
This commit is contained in:
committed by
GitHub
parent
bfe76794c0
commit
421bbdefbe
@ -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 (
|
||||
<DefaultLayout pathname={pathname} showFooter={false}>
|
||||
{element}
|
||||
|
Reference in New Issue
Block a user