diff --git a/src/components/MainNav.tsx b/src/components/MainNav.tsx index 73729ef6..04bfdf74 100644 --- a/src/components/MainNav.tsx +++ b/src/components/MainNav.tsx @@ -1,4 +1,4 @@ -import { usePathname } from "next/navigation"; +import { usePathname, useSearchParams } from "next/navigation"; import { Routes } from "@/constants/routes"; import { NextLink } from "@/components/NextLink"; @@ -32,6 +32,10 @@ const secondaryNavLinks: NavLink[] = [ export const MainNav = () => { const pathname = usePathname(); + const searchParams = useSearchParams(); + + console.log(">>> pathname: ", pathname); + console.log(">>> searchParams: ", searchParams.toString()); const isActiveRoute = (link: string) => { if (link.startsWith("http")) {