Hi All,
I’m having trouble with a social feed page and hope its a simple fix!
I need a button within a repeater to link to the profile of the person who posted the item.
So essentially it is a status feed with a view profile button that I want to link to the dynamic profile page of the user that posted the particular status.
I tried the below but it doesn’t work.
import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;
import wixLocation from ‘wix-location’;
$w(“#button7”).onClick((event, $w) => {
let targetId = $w(“#dataset1”) .getCurrentItem() [“link-/profile/{nickname}/profile”];
wixLocation.to(targetId);
});
I’ve tried so many ways to get this to work and every way seems to not allow it!
Any tips or advice very much appreciated!
<3