diff --git a/apps/nextjs/src/app/aila/help/index.tsx b/apps/nextjs/src/app/aila/help/index.tsx index 0049e9489..a58146343 100644 --- a/apps/nextjs/src/app/aila/help/index.tsx +++ b/apps/nextjs/src/app/aila/help/index.tsx @@ -3,7 +3,7 @@ import { useRef } from "react"; import { OakLink } from "@oaknational/oak-components"; -import { useParams } from "next/navigation"; +import { useSearchParams } from "next/navigation"; import { Header } from "@/components/AppComponents/Chat/header"; import GetInTouchBox from "@/components/AppComponents/GetInTouchBox"; @@ -26,7 +26,8 @@ const Help = () => { } }; - const ailaId = useParams().ailaId; + const searchParams = useSearchParams(); + const ailaId = searchParams.get("ailaId"); return ( <> diff --git a/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx b/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx index 1dc995fa8..05ae2b2ac 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx @@ -31,7 +31,7 @@ export function ChatHistory() { AI experiments page diff --git a/apps/nextjs/src/components/AppComponents/Chat/header.tsx b/apps/nextjs/src/components/AppComponents/Chat/header.tsx index aed5ae381..a2f91c60e 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/header.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/header.tsx @@ -67,7 +67,7 @@ export function Header() {