How to achieve your wished functionality?
- Your code must recognice when a member has logged-in…
import { authentication } from 'wix-members';
authentication.onLogin((memberInfo) => {
const memberId = memberInfo.id; console.log(memberId);
console.log('Member logged in');
});
- Your code also has to be able to do a redirection to another page…
import wixLocation from 'wix-location';
const options = {
disableScrollToTop: true
};
wixLocation.to("/about-me", options);
Combine the 2 provided codes to make your wished functionality come true.