From 9827fd8406248f122c2871cdfcf3839f7f57fa90 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 28 Oct 2019 00:40:08 +0400 Subject: [PATCH] Add fallback page --- components/featured-content/index.js | 2 +- pages/[fallback].js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 pages/[fallback].js diff --git a/components/featured-content/index.js b/components/featured-content/index.js index e14496cf0..b9e615e04 100644 --- a/components/featured-content/index.js +++ b/components/featured-content/index.js @@ -7,7 +7,7 @@ const FeaturedContent = (props) => ( - + { /**/ } ); diff --git a/pages/[fallback].js b/pages/[fallback].js new file mode 100644 index 000000000..b6d43cffc --- /dev/null +++ b/pages/[fallback].js @@ -0,0 +1,16 @@ +import { useRouter } from 'next/router' + +// Fallback page to handle the routing for the old roadmap pages +const Fallback = () => { + const router = useRouter(); + const { fallback } = router.query; + + return ( +
+

{ fallback }

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi dolorum ea earum exercitationem fuga magnam nihil nostrum numquam optio provident quaerat repellendus, repudiandae vitae voluptas, voluptatibus. Consequuntur doloremque maxime perferendis!

+
+ ); +}; + +export default Fallback; \ No newline at end of file