I am using app router and I noticed that sometimes the query param in the browser and the one that my code reads from the browser are not the same. example in the image of network calls there is a call to my route with queryParam riskAssesmentId and the response from my server should respond with the same as a conversationId but the two are different.
here is an example of how I read the queryParam
export default async function Page({
searchParams,
}: {
searchParams: {[key: string]: string | undefined}
}) {
const token = cookies().get(USER_SESSION_KEY)?.value
if (!token) {
return notFound()
}
const ssn = searchParams['kennitala']!
const riskAssessmentId = searchParams['riskAssessment']!