Additional to shimonsuissa1954-advise, you could also manipulate the location where you want to direct to as you want…
Just as little example here…
https://russian-dima.wixsite.com/meinewebsite/create-my-link
This shall just show you, that you can manipulate your url as you want
.
So get the current users-informations…
import wixUsers from 'wix-users';
2
3// ...
4
5let user = wixUsers.currentUser;
6
7let userId = user.id; // "r5cme-6fem-485j-djre-4844c49"
8let isLoggedIn = user.loggedIn; // true
9
10user.getEmail()
11 .then( (email) => {
12 let userEmail = email; // "user@something.com"
13 } );
14
15user.getRoles()
16 .then( (roles) => {
17 let firstRole = roles[0];
18 let roleName = firstRole.name; // "Role Name"
19 let roleDescription = firstRole.description; // "Role Description"
20 } );
21
22user.getPricingPlans()
23 .then( (pricingPlans) => {
24 let firstPlan = pricingPlans[0];
25 let planName = firstPlan.name; // "Gold"
26 let startDate = firstPlan.startDate; // Wed Aug 29 2018 09:39:41 GMT-0500 (Eastern Standard Time)
27 let expiryDate = firstPlan.expiryDate; // Thu Nov 29 2018 08:39:41 GMT-0400 (Eastern Daylight Time)
28 } );
Choose the data of the user which you need.
Get your location.to …
(/Members/${wixUsers.currentUser.id})
Modify it in similar way like shown in example and do what ever you want with your own generated/manipulated LINK/URL/LOCATION what ever.