Hello, I used this code https://support.wix.com/en/article/wix-code-tutorial-building-your-own-members-area to make my custom login page for my users. However, it is not working and one line in particular is causing errors. I did change the code to fit my database. I know the dynamic page is working, as when you plug in the users ID number after the proper extension, it successfully loads their page. However, when clicking the button with this code it uses the Owner number as circled in red. Why is it using the owner number instead of their ID number? Note the user.id is also called earlier in the code during login I believe.
This line in particular is causing the issue I believe
export function profileButton_click(event) { wixLocation.to(`/dmList/${wixUsers.currentUser.id}`); }
Even though the code uses .id it is actually using the Owner field number as the URL extension
#wixUsers #wixLocation #customloginpage #wixcode #user.id #Database #Fields #ID #Owner
Hope someone could solve this issue. I'm stuck with this problem as well.