I have created a form for user registration but I want users after registration to go to their dynamic page to be able to access their data I have tried many times but to no avail everything I see is
(There’s Nothing Here. …
We can’t find the page you’re looking for.
Check the URL, or head back home.)
I also tried
w i x L o c a t i o n . t o  ( / . .. / $ { w i x U s e r s . c u r r en tU ser.  id }  ) ;
no result
this is a cod I am using now
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
import wixData from 'wix-data';
let registration;
$w.onReady(function () {
 $w("#registrationButton").onClick((event) => {
  console.log("Button was clicked"); //You can change the text of this line or delete it
  $w('#errorMessage').hide(); //We want to hide all error messages when the person attempts to register again
  $w('#emailExists').hide(); //We want to hide all error messages when the person attempts to register again
 if ($w("#email").valid && $w("#password").valid && $w("#firstName").valid && $w("#lastName").valid) {
 let email = $w("#email").value;
 let password = $w("#password").value;
 let first = $w("#firstName").value;
 let last = $w("#lastName").value;
   wixUsers.register(email, password, {
     contactInfo: {
 "firstName": first,
 "lastName": last
     }
    })
    .then((result) => {
     $w("#dataset1").save()
      .then((item) => {
       wixLocation.to("/"); 
      })
      .catch((err) => {
 let errMsg = err;
      });
    })
    .catch((err) => {
 let errorMsg = err;
     console.log(err);
     $w('#emailExists').show(); 
    });
   console.log("Trying to register"); 
  } else {
   $w('#errorMessage').show(); //
   console.log("Missing information"); /
  }
 });
});
Do you have any idea if any cod works.
