From b2bba2297a26cdd75c32acc53409020668abc4c5 Mon Sep 17 00:00:00 2001 From: Adam Joseph Arling Date: Mon, 21 Aug 2023 10:03:57 -0500 Subject: [PATCH] Add a redirect to homepage for 404s --- components/layout/HeaderNew.jsx | 8 ++++---- pages/404.js | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 pages/404.js diff --git a/components/layout/HeaderNew.jsx b/components/layout/HeaderNew.jsx index 9151e6112..abd668a35 100644 --- a/components/layout/HeaderNew.jsx +++ b/components/layout/HeaderNew.jsx @@ -73,9 +73,9 @@ const PopOverWrapper = ({ label, items, siteNavIndex }) => { )} top-full rounded-3xl ring-1 ring-gray-900/5`} >
- {items.map((item) => ( + {items.map((item, idx) => (
@@ -115,9 +115,9 @@ const DisclosureWrapper = ({ label, items }) => { /> - {[...items].map((item) => ( + {[...items].map((item, idx) => ( { + router.replace("/"); + }); + + return null; +}