Skip to content

Commit 1dd171c

Browse files
Merge pull request #2280 from AletheiaFact/fix/share-buttons-on-homepage
fix: populate href prop in getServerSideProps for social sharing
2 parents 54061ee + 0cd43fc commit 1dd171c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/home-page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export async function getServerSideProps({ query, locale, locales, req }) {
4242
claims: JSON.parse(JSON.stringify(query.claims)),
4343
stats: JSON.parse(JSON.stringify(query.stats)),
4444
nameSpace: query.nameSpace ? query.nameSpace : NameSpaceEnum.Main,
45+
href: req.protocol + "://" + req.get("host") + req.originalUrl,
4546
},
4647
};
4748
}

0 commit comments

Comments
 (0)