diff --git a/README.md b/README.md index 405108bf0..75b10921a 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ [![Build Status](https://travis-ci.org/openstax/os-webview.svg?branch=master)](https://travis-ci.org/openstax/os-webview) [![Code Climate](https://codeclimate.com/github/openstax/os-webview/badges/gpa.svg)](https://codeclimate.com/github/openstax/os-webview) -[![dependency Status](https://david-dm.org/openstax/os-webview.svg)](https://david-dm.org/openstax/os-webview#info=dependencies) -[![devDependency Status](https://david-dm.org/openstax/os-webview/dev-status.svg)](https://david-dm.org/openstax/os-webview#info=devDependencies) ## Requirements diff --git a/src/app/components/shell/router.js b/src/app/components/shell/router.js index d1fe664e3..e7f4f5c7f 100644 --- a/src/app/components/shell/router.js +++ b/src/app/components/shell/router.js @@ -126,6 +126,16 @@ function RedirectToCanonicalDetailsPage() { ); } +function RedirectToPageWithoutJunk() { + const {name, '*': junk} = useParams(); + + if (junk) { + return ; + } + + return ; +} + function MainRoutes() { const {Layout} = useLayoutContext(); @@ -146,7 +156,7 @@ function MainRoutes() { } /> } /> } /> - } /> + } /> } /> } /> } /> @@ -158,7 +168,7 @@ function MainRoutes() { path="/edtech-partner-program" element={} /> - } /> + } /> Fell through} />