From 70f3ca606da1c5e3247f6d36f66ab506c1b2187c Mon Sep 17 00:00:00 2001 From: Praveen Tiwari <132132076+praveent04@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:06:10 +0530 Subject: [PATCH] Added meta description for SEO improvement as part of issue #1736 of search.page.tsx --- src/pages/explorer/search.page.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pages/explorer/search.page.tsx b/src/pages/explorer/search.page.tsx index 590d9809d..bc9f71d90 100644 --- a/src/pages/explorer/search.page.tsx +++ b/src/pages/explorer/search.page.tsx @@ -158,7 +158,22 @@ const UnstyledTable = () => { }); }; + + const areaName = appliedFilters.areaName ?? 'All Areas'; + const searchText = appliedFilters.text ?? ''; + + const description = searchText + ? `Search results for toilets matching "${searchText}" in ${areaName}. Find toilets with updated details in your area.` + : `Search for toilets across ${areaName}. Use filters to find active or removed toilets and get detailed area breakdowns.`; + + return ( + + + Toilet Map Search + + +