From 73961da21a015fc9d2ac83c27babd44aff32c9c4 Mon Sep 17 00:00:00 2001 From: Valeriy S Date: Tue, 14 May 2019 17:29:27 +0300 Subject: [PATCH] fix(client): always show footer on 404 page --- client/utils/gatsby/layoutSelector.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/utils/gatsby/layoutSelector.js b/client/utils/gatsby/layoutSelector.js index 5e35c174dc..967b838583 100644 --- a/client/utils/gatsby/layoutSelector.js +++ b/client/utils/gatsby/layoutSelector.js @@ -8,6 +8,7 @@ import { } from '../../src/components/layouts'; // eslint-disable-next-line max-len import GuideNavMenu from '../../src/components/layouts/components/guide/NavMenu'; +import FourOhFourPage from '../../src/pages/404'; export default function layoutSelector({ element, props }) { const { @@ -20,6 +21,9 @@ export default function layoutSelector({ element, props }) { ); } + if (element.type === FourOhFourPage) { + return {element}; + } if (/^\/certification(\/.*)*/.test(pathname)) { return {element}; }