Basically, I want to make of NextJS router to access page url and I do this:
import { useRouter } from "next/router";
const SomeComp = props => {
const router = useRouter();
}
However, router has properties pathname and route that both seem to contain the exact "url" of the page when I console.log() them. I've looked at NextJS docs and and I can't see the difference between the two and whether there's some kind of gotcha I should be aware of in using any of the two in accessing the page url