Please I need help with getting to the current user's profile using a button.

I have a form that when submitted it brings up a light box that has a button on it. I am trying to make that button goto to the specific loggedin user’s profile when clicked using the “link” feature but wix only gives the option to goto various users profile not the current user. Please how do I solve this? Thanks.

Hey Chidi,

You can do this using the to() function from the wix-location API and the wix-users API.

It could look something like this;`/Members/${}`);

We have a tutorial that shows how to build a complete members area which may help you with this.

Corvid Tutorial: Building Your Own Members Area

Hope this helps!

Dara | Corvid Team

Hi Dara, thanks for the response. this is the code on the lightbox

import wixData from “wix-data” ;
import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;
let user = wixUsers.currentUser;
let userId =;

export function button37_click(event) {


}) [‘/Members/${}’](‘/Members/${}’);

}) [);](‘/Members/${}’);




This is the default wix members area. The code does not take me to the current user’s profile page. Is there any solution to this?Thanks.