Hello! Perhaps I’m going at this wrong since I see members in the past has had success, but I can’t get the profile modal to pop up. The signup modal’s implementation is similar so I’m not sure whether it’s a bug or not.
The tech stack I’m using is React.
Sign up Modal:
<div className="loginContainer">
<a href="#/ms/signup/5efb222e2be7f100043b8389">
<Button color="green">Sign Up / Login</Button>
</a>
</div>
Profile Modal:
<Dropdown.Menu>
<Dropdown.Item>
<a href="/#/ms/profile">Profile Settings</Link>
</Dropdown.Item>
</Dropdown.Menu>
When sign up button is clicked, the sign up modal pops up.
When the Profile Settings button is clicked, it redirects me to the login screen.
I added an extra “/” in front for profile because when the user is logged in, they are directed to “domain.com/dashboard”. Without the “/”, it would concatenate to the url and become “domain.url/dashboard#/ms/profile” and nothing happens.
Digging a bit deeper, I tried to get the member’s metadata with
window.MemberStack.onReady.then(async member => {
let res = await member.getMetaData();
console.log(res);
});
and got the error after I logged in by entering the correct username and password:
Uncaught (in promise) Error: Member must be logged in at memberstack.js?webflow:1 at c (memberstack.js?webflow:1)