diff --git a/components/agility-global/AgilityPage.tsx b/components/agility-global/AgilityPage.tsx index 081469aa9..f76ea7dac 100644 --- a/components/agility-global/AgilityPage.tsx +++ b/components/agility-global/AgilityPage.tsx @@ -1,5 +1,6 @@ import pageTemplates from "components/agility-pageTemplates" import Head from 'next/head' +import { Text } from '@components/ui' const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, error?: any, revalidate?: any }) => { @@ -18,9 +19,14 @@ const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, e return ( <> - Page Not Found - {pageTitle} + Page Not Found - {pageTitle} -
Page not found.
+
+ Not Found + + The requested page doesn't exist or you don't have access to it. + +
) } @@ -37,6 +43,9 @@ const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, e <> {agilityProps.sitemapNode?.title} - {pageTitle} + + + diff --git a/components/common/Footer/Footer.tsx b/components/common/Footer/Footer.tsx index 9ea384668..a955d5a49 100644 --- a/components/common/Footer/Footer.tsx +++ b/components/common/Footer/Footer.tsx @@ -22,23 +22,27 @@ const Footer: FC = ({ className, pages, agilityProps }) => { const { sitePages } = usePages(pages) const rootClassName = cn(s.root, className) - const siteData = agilityProps.globalData["sitedata"] + const siteData = agilityProps?.globalData["sitedata"] || null + + const agilityLinks = siteData?.links || [] return (