Why isn't returnTo working for logout?

I have the following…

const {isAuthenticated, idTokenClaims, loginWithRedirect, isLoading, logout} = auth0.useAuth0();
const tab = ref('home');
const searchText = ref('');

const onLogout = ()=>{
  logout({
    returnTo: window.location.origin
  })
}

But when it logs out it gets returned to https://localhost instead of https://localhost:8080 which is what it was originally on. Here is the logout message…

https://auth.purepm.dev/v2/logout?isTrusted=true&client_id=...&auth0Client=...=

Why is it not adding it and how do I add it?

I hardcoded as well to confirm it wasn’t an empty object same response…

logout({
    client_id: "...",
    returnTo: "https://localhost:8000"
})

But it still goes back to https://localhost