From bc535bfff4e51de40100b303744700d162a1f177 Mon Sep 17 00:00:00 2001 From: internxt-yu Date: Fri, 6 Nov 2026 11:11:25 +0100 Subject: [PATCH 1/4] change lang going to drive-web --- src/components/banners/LoginBFBanner.tsx | 3 +- src/components/banners/TryInternxtBanner.tsx | 3 +- src/components/comparison/TableSection.tsx | 5 +++- src/components/home/ThirdFeaturesSection.tsx | 3 +- .../layout/components/LanguageMobileBox.tsx | 2 ++ src/components/layout/footers/Footer.tsx | 9 +++--- src/components/layout/navbars/Navbar.tsx | 4 +-- .../partnersTemplate/HeroSection.tsx | 5 +++- src/components/refer-a-friend/HeroSection.tsx | 5 +++- src/components/shared/CtaSection.tsx | 5 +++- src/components/shared/DownloadComponent.tsx | 7 +++-- .../ManageGoogleDataSection.tsx | 5 ++-- .../WhatGoogleKnowsSection.tsx | 3 +- src/lib/auth.ts | 30 +++++++++++++++---- src/pages/_app.tsx | 7 ++++- 15 files changed, 70 insertions(+), 26 deletions(-) diff --git a/src/components/banners/LoginBFBanner.tsx b/src/components/banners/LoginBFBanner.tsx index 019035726a..f032587358 100644 --- a/src/components/banners/LoginBFBanner.tsx +++ b/src/components/banners/LoginBFBanner.tsx @@ -9,6 +9,7 @@ import { } from '@phosphor-icons/react'; import React from 'react'; import { useRouter } from 'next/router'; +import { addLangToDriveURL } from '@/lib/auth'; const cardsTitles = { en: { @@ -151,7 +152,7 @@ const LoginBFBanner = () => { className="relative flex h-14 w-48 flex-row items-center justify-center space-x-4 rounded-lg bg-primary px-8 text-base text-white transition duration-100 focus:outline-none focus-visible:bg-primary-dark active:bg-primary-dark sm:text-lg" onClick={() => { window.location.replace( - 'https://drive.internxt.com/new?utm_source=website&utm_medium=banner&utm_campaign=blackfriday', + addLangToDriveURL('https://drive.internxt.com/new?utm_source=website&utm_medium=banner&utm_campaign=blackfriday'), ); }} > diff --git a/src/components/banners/TryInternxtBanner.tsx b/src/components/banners/TryInternxtBanner.tsx index 7e49ddfbbf..7d9df28032 100644 --- a/src/components/banners/TryInternxtBanner.tsx +++ b/src/components/banners/TryInternxtBanner.tsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import { X } from '@phosphor-icons/react'; import Image from "next/image"; import { getImage } from '@/lib/getImage'; +import { addLangToDriveURL } from '@/lib/auth'; const TryInternxtBanner = ({ textContent, url }) => { const [bannerVisible, setBannerVisible] = useState(false); @@ -40,7 +41,7 @@ const TryInternxtBanner = ({ textContent, url }) => {