From a78c8f92a87f4949abe5cd562d2b9cf013a9c3d1 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 25 Feb 2022 08:51:30 +0000 Subject: [PATCH] dns url redirect --- components/breadcrumbs.js | 2 -- pages/dns/[developmentName].js | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/breadcrumbs.js b/components/breadcrumbs.js index 54a45396..46b2d310 100644 --- a/components/breadcrumbs.js +++ b/components/breadcrumbs.js @@ -13,8 +13,6 @@ const Breadcrumbs = (props) => { let { t } = useTranslation(); - console.log("asdadad", slug); - function Breadcrumb() { if (slug) { var coursePageURL = appealType + "/" + slug; diff --git a/pages/dns/[developmentName].js b/pages/dns/[developmentName].js index 4ee5df81..22870c81 100644 --- a/pages/dns/[developmentName].js +++ b/pages/dns/[developmentName].js @@ -127,7 +127,8 @@ export const getServerSideProps = wrapper.getServerSideProps( if (searchResultsObj["@odata.count"] > 1) { return { redirect: { - destination: "/dns-not-found", + //destination: "/dns-not-found", + destination: "/404", permanent: false, }, };