Redirect after Logout

I’m trying to adjust the Logout process. When a logged-in user logs out from a members only page, the Login page pops up. How can I adjust this so instead the user is logged out and then redirected to the home page. Thanks for the help!

Create your own logout button and then you can control it by code:

import wixLocation from 'wix-location';
import wixUsers from 'wix-users';
//....
$w.onReady(() => {
$w("#logoutButton").onClick(() => {
Promise.all([wixUsers.logout(), wixLocation.to("/home")]);
})
})