diff --git a/frontend/src/hooks/useDocumentTitle.js b/frontend/src/hooks/useDocumentTitle.js index 5008470e01..a11c8e8053 100644 --- a/frontend/src/hooks/useDocumentTitle.js +++ b/frontend/src/hooks/useDocumentTitle.js @@ -4,7 +4,6 @@ import useGetSiteSettings from "../models/useGetSiteSettings"; export default function useDocumentTitle() { const { data: siteSettings } = useGetSiteSettings(); - console.log("siteSettings", siteSettings); document.title = siteSettings?.siteName || "wildbook"; useEffect(() => { if (!siteSettings) return; @@ -35,13 +34,6 @@ export default function useDocumentTitle() { document.getElementsByTagName("head")[0].appendChild(meta); } - console.log( - "++++++++++++", - siteSettings.siteDescription, - siteSettings.siteKeywords, - siteSettings.siteAuthor, - ); - if (link) { link.href = iconURL; } else { diff --git a/src/main/java/org/ecocean/api/SiteSettings.java b/src/main/java/org/ecocean/api/SiteSettings.java index 898e612eb5..696208dac2 100644 --- a/src/main/java/org/ecocean/api/SiteSettings.java +++ b/src/main/java/org/ecocean/api/SiteSettings.java @@ -47,6 +47,9 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) // note: there is a CommonConfiguration property: htmlShortcutIcon=images/favicon.ico?v=2 settings.put("siteFavicon", "/images/favicon.ico"); settings.put("siteName", CommonConfiguration.getHTMLTitle(context)); + settings.put("siteDescription", CommonConfiguration.getHTMLDescription(context)); + settings.put("siteKeywords", CommonConfiguration.getHTMLKeywords(context)); + settings.put("siteAuthor", CommonConfiguration.getHTMLAuthor(context)); settings.put("locationData", LocationID.getLocationIDStructure()); settings.put("mapCenterLat", CommonConfiguration.getCenterLat(context));