I am passing data via link component like this:
<div>
{data.map((myData) => (
<h2>
<Link
href={{
pathname: `/${myData.title}`,
query: {
id: myData.id
}
}}>
<a>{myData.title}</a>
</Link>
</h2>
))}
</div>
And getting this URL http://localhost:3000/this-is-a-title?id=630f3c32c1
Is there any other way to do the same but get rid of that ? and everything after it for better SEO?