wixLocation.to (current user)

Hi All

I’m trying to create a button on my home page to ‘jump’ to a members profile page (instead of them having to click on the WIX Forum Photo Icon to bring up the menu).

I tried calling the persons userID [let userId = user.id;] and using that as part of a wixLocation.to command, but the forum doesn’t use the members ID as part of it’s URL. It uses the persons chosen name (adds a ‘_1’ to it if there is more that one of said chosen names).

(Example):

So, I tried calling the current user and nothing pops up still.

This is what I have so far but it doesn’t register:

import wixLocation from 'wix-location';
import wixUsers from 'wix-users';

export function box21_click(event, $w) {
    let currentUser = wixUsers.currentUser;
    wixLocation.to("/members/currentUser/about"); 
}

Is there any way to get this to work?

Many thanks

Thomas