From 68ba1b2d76e5555d2bcd9b74c6a6bf00b5fb2ca8 Mon Sep 17 00:00:00 2001 From: Fernando Lucchesi Date: Tue, 24 Oct 2023 16:43:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Set=20wildcard=20referer=20for?= =?UTF-8?q?=20algolia=20#1944?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pageComponents/pageTemplates/MagazineIndexPage.tsx | 2 +- web/pageComponents/pageTemplates/NewsRoomPage.tsx | 2 +- web/pageComponents/shared/MagazineTagBar.tsx | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/pageComponents/pageTemplates/MagazineIndexPage.tsx b/web/pageComponents/pageTemplates/MagazineIndexPage.tsx index 3efec8c94..290c821c9 100644 --- a/web/pageComponents/pageTemplates/MagazineIndexPage.tsx +++ b/web/pageComponents/pageTemplates/MagazineIndexPage.tsx @@ -96,7 +96,7 @@ const MagazineIndexPage = ({ isServerRendered = false, locale, pageData, slug, u isServerRendered ? searchClient({ headers: { - Referer: url, + Referer: '*', }, }) : searchClient(undefined) diff --git a/web/pageComponents/pageTemplates/NewsRoomPage.tsx b/web/pageComponents/pageTemplates/NewsRoomPage.tsx index 1f0ac560c..b131159de 100644 --- a/web/pageComponents/pageTemplates/NewsRoomPage.tsx +++ b/web/pageComponents/pageTemplates/NewsRoomPage.tsx @@ -207,7 +207,7 @@ const NewsRoomPage = ({ isServerRendered, locale, pageData, slug, url }: NewsRoo isServerRendered ? searchClient({ headers: { - Referer: url, + Referer: '*', }, }) : searchClient(undefined) diff --git a/web/pageComponents/shared/MagazineTagBar.tsx b/web/pageComponents/shared/MagazineTagBar.tsx index 979777f98..16f5406d8 100644 --- a/web/pageComponents/shared/MagazineTagBar.tsx +++ b/web/pageComponents/shared/MagazineTagBar.tsx @@ -15,10 +15,10 @@ export type TagLink = { active: boolean } & AnchorHTMLAttributes -const StyledLink = styled(Link).attrs((props: { active: boolean }) => props)` +const StyledLink = styled(Link).attrs((props: { $active: boolean }) => props)` display: inline-block; position: relative; - font-weight: ${(props) => (props.active ? 'bold' : 'normal')}; + font-weight: ${(props) => (props.$active ? 'bold' : 'normal')}; &:hover { font-weight: bold; } @@ -62,7 +62,7 @@ const TagWrapper = styled.div` ::-webkit-scrollbar { display: none; } - + @media (min-width: 1024px) { flex-wrap: wrap; padding: var(--space-large) var(--space-3xLarge); @@ -86,8 +86,8 @@ const MagazineTagBar = forwardRef(function { @@ -102,10 +102,10 @@ const MagazineTagBar = forwardRef(function {tags.map((it: TagLink) => ( { if (onClick) {