Skip to content

Commit

Permalink
Added meta description for SEO improvement as part of issue #1736 of …
Browse files Browse the repository at this point in the history
…search.page.tsx
  • Loading branch information
praveent04 authored Oct 22, 2024
1 parent 47fdc4d commit 70f3ca6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/pages/explorer/search.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (

<Head>
<title>Toilet Map Search</title>
<meta name="description" content={description} />
</Head>

<div>
<Box
as="form"
Expand Down

0 comments on commit 70f3ca6

Please sign in to comment.