Getting the Current Path

Use useRoute to get the path of the current page.

const route = useRoute()
console.log(route.path)