/foo/:bar?
/foo
:bar
/** Currently at /foo/buzz */const router = useRouter()/** To be triggered by some event */const foo = () => router.replace({ params: { bar: null } })