When I click on a link in my /index.js, it brings me to /about.js page.
/index.js
/about.js
However, when I\'m passing parameter name through URL (like
import { useRouter } from 'next/router'; function componentName() { const router = useRouter(); console.log('router obj', router); }
We can find the query object inside a router using which we can get all query string parameters.