From 618298b1b145ab463d5e35c9d8e65fdb1b6d41e0 Mon Sep 17 00:00:00 2001 From: Unchained Date: Fri, 3 Apr 2026 20:14:07 +0200 Subject: [PATCH] fix(layout): restore original structure, keep only Rybbit direct URL fix Revert unintended changes from previous commit: - Restore AnalyticsProvider (was accidentally removed) - Remove ExitIntentDetector (feature branch code) - Remove Mautic tracking script (feature branch code) Keep only the intended Rybbit fix: - Direct connection to Rybbit instead of server-side proxy --- src/app/[locale]/layout.tsx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 6b4c1cc..f61baa4 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -3,7 +3,7 @@ import { NextIntlClientProvider } from "next-intl"; import { getMessages, setRequestLocale } from "next-intl/server"; import { SUPPORTED_LOCALES, DEFAULT_LOCALE, isValidLocale } from "@/lib/i18n/locales"; import Script from "next/script"; -import ExitIntentDetector from "@/components/home/ExitIntentDetector"; +import AnalyticsProvider from "@/components/providers/AnalyticsProvider"; const RYBBIT_SITE_ID = process.env.NEXT_PUBLIC_RYBBIT_SITE_ID || "1"; const RYBBIT_HOST = process.env.NEXT_PUBLIC_RYBBIT_HOST || "https://rybbit.nodecrew.me"; @@ -21,7 +21,7 @@ export async function generateMetadata({ }): Promise { const { locale } = await params; const validLocale = isValidLocale(locale) ? locale : DEFAULT_LOCALE; - const localePrefix = validLocale === DEFAULT_LOCALE ? "" : `/${validLocale}`; + const localePrefix = validLocale === DEFAULT_LOCALE ? "" : `/${locale}`; const languages: Record = {}; for (const loc of SUPPORTED_LOCALES) { @@ -50,27 +50,14 @@ export default async function LocaleLayout({ return ( <> +