Skip to content

Commit

Permalink
try to directly make the meta tag from the url
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiramTadepalli committed Nov 10, 2024
1 parent a782977 commit 96afc30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,13 @@ export const Dashboard: NextPage = () => {
<meta
key="og:title"
property="og:title"
content={'Results - ' + pageTitle + 'UTD TRENDS'}
content={
'Results - ' +
(router.query.searchTerms as string[])
.map((el) => decodeSearchQueryLabel(el))
.join(', ') +
'UTD TRENDS'
}
/>
<meta
property="og:url"
Expand Down

0 comments on commit 96afc30

Please sign in to comment.