Hi,
-
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.
-
Changing the page URL should be done via the editor, not by code.