export default function course() {
const router = useRouter()
slu= router.asPath.split("/")[2]
console.log(slu)
return (<design goes here>);
}
So the problem here is that when I use this method it gives me this output
What I want is the value 1731547675
but instead of that it's giving me [slug]
What's wrong that I am doing here