update footer and breadcrumbs for new pages

This commit is contained in:
2024-04-22 13:14:42 +01:00
parent 1b8db8044d
commit 5e5f6e5c82
2 changed files with 225 additions and 1 deletions
+10 -1
View File
@@ -40,8 +40,17 @@ export default function Footer(props) {
}
};
const origin =
typeof window !== "undefined" && window.location.origin
? window.location.origin
: "";
const URL = `${origin}`;
const shareBodyStr =
t("common:service-home-url") +
// t("common:service-home-url") +
URL +
(locale == "cy" ? "/cy" : "") +
(router.route == "/case" ||
router.route == "/dnsdetails" ||
router.route == "/myportal/case"