Auth0 NextJS Logout redirect deosnt work

I have a NextJS app, and I try to redirect the client after he logs out to my landing page.
I have configured the Allowed Logout URLs to the landing page, and when I look at the console network logs, I see 2 GET requests:
the first is this - http://localhost:3000/api/auth/logout? which is what i am looking for,
and the second is this -***&returnTo=http%3A%2F%2Flocalhost%3A3000 , which is to localhost:3000, and its not in the allowed urls and not the desired destination.
what am I missing?