From c587b2e75717b1444b4ebdd462cb584c3b3f64e5 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 8 Oct 2022 16:42:58 +0400 Subject: [PATCH] add query param to websites --- .../app/core/components/WebsiteCard/WebsiteCard.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx b/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx index f0a96b4..0552bff 100644 --- a/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx +++ b/searching-front/app/core/components/WebsiteCard/WebsiteCard.tsx @@ -7,12 +7,16 @@ interface Props { description: string } const WebsiteCard = (props: Props) => { + const urlObj = new URL(props.url) + urlObj.searchParams.set("from", "Searching.ton") + + const url = urlObj.toString(); return (
- + {props.title} - + {cleanUrlForUi(props.url)}
{props.description}