Can the _id in my database have the same value as the _owner?

Hi again russian-dima! :grin:

In my sign up page, I want to add a code wherein the value of _id will be the same value as the _owner in my own database because the ID at the end of the page url is _owner and not the _id of my database.


Every time I use this code for example: wixLocation.to(/Members/${ wixUsers.currentUser.id } )
it directs me to 404 page because the wixUsers.currentUser.id is not the same as the _id but _owner.

This is part of my code in the sign up page.

function registerPerson() {

 let email = $w("#email").value;
 let password = $w("#password").value;
 let first = $w("#firstName").value;
 let last = $w("#lastName").value;
 let userId = wixUsers.currentUser.id;  

 wixUsers.register(email, password, {
   contactInfo: {
 "firstName": first,
 "lastName": last
   }
  })

 .then(() => {
 let toSave = {
 "emailAddress": email,
 "password": password,
 "firstName": first,
 "lastName": last,
    };
    wixData.save("MemberPage", toSave)
    })

    .then(() => {
       $w("#successful").show();
       wixLocation.to("/member/welcome-new-user");
 //Change the URL ending to the page you want to redirect the user after they successfully register
  })

I hope you get what I mean and thanks a lot!