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

Hi,

  1. Your code is not so clear. You’re missing import wixData , you’re using wixUsers instead of wixUsersBackend , you don’t export any function . + you’re not return ing anything. And the purpose of the code is not clear either. Maybe you can elaborate about what you’re trying to do with this code.

  2. Changing the page URL should be done via the editor, not by code.