link to dynamic page from repeater item page

Hi, I read other users questions about it but my problem is diffrent,
I want to show data in dynamic page from repeater item which is clicked on it not data from
the person who has clicking.
(indeed i need to do something like members profile in this wix site):
when clicking on a pic (an item from repeater page),


show their personal data like this,


but mine, data of someone who are clicking has shown here! may you help me how can i solve
this problem?
thanks a lot :).

Hello

you can achieve that by getting the current item of the repeater on click then link to that item based of the dynamic page path (using id or title or any other field you set at your dynamic link value ).
check this : https://www.wix.com/code/home/forum/community-discussion/direct-repeater-item-to-dynamic-page

Best
Massa

thanks a lot.

Hi Massa,

I am working on a company health app that links the user to store health pages that the user creates. I am using a repeater that links to a dynamic page. The dynamic page displays data from the store as well as the logged in users details. but when the user clicks on the repeater and lands on the dynamic page the users details then change to another user in my user data base. The code i am using is as follows:

import wixUsers from ‘wix-users’ ;
import wixData from ‘wix-data’ ;
import wixLocation from ‘wix-location’ ;
import wixWindow from ‘wix-window’ ;

export function button19_onClick(event) {
$w( ‘#box11’ ).show();
}

export function brandsystemLogo_onClick(event) {
$w( ‘#box11’ ).hide();
}

export function closeButton_onClick(event) {
$w( ‘#box11’ ).hide();
}

export function viewHealth_onClick(event) {
let targetId = $w( “#dataset1” ).getCurrentItem()._id;
wixLocation.to( ‘/stores-1/’ + targetId) //
}

I need to get the current user id from the current logged in user. How do I go about fixing this issue?