How to change the URL in members profile from {username}/slug to ID on sign up

Hi J.D. greatly appreciate your response to my question

  1. It is my first time trying to make the code normally I just copy and paste hence the errors. I am trying to change the {username} section in the members profile page to {membersID}. I believed that ordinarily it was this by default but it is not and there is no way to change this URL for some reason. I have tried everything through the editor but there isn’t an option to do so. So I have reverted to trying to code the process.


So basically as the members create their accounts they are given a members ID in the Privatemembersdata collection. The URL is using the “slug” (the "slug is the information before that @ symbol in the email) section to fill in “{username}” (even though I have a username when the member signs up but this isn’t being used) I don’t want this “slug” to be used though as this is private information to the member and members emails could easily be figured out from this as the profile page will be public.

so I want a unique code (such as the members ID) to be used so that their information is kept private from the public. Also the unique URL has to be consistent, as in it can’t change every time the user logs in, hence why the MembersID would be a perfect fit for this URL. Again no way to do it through wix editor.

Please let me know if this makes sense.