Needing help connecting a searched item in custom search bar to connect to specific dynamic page.

I am creating a sort-of social network as an internal company website. I have created a custom member search bar with code and it seems to work fine. I created a custom dynamic profile page that also works fine for users. I need help figuring out how to connect the searched member’s profile to the repeater so that when the user searching finds the person they need, they can click and go to that person’s profile. I can only ever seem to connect the “current logged in user’s” dynamic page… TIA

if you have created a custom dynamic profile page, like from this tutorial.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area

Then it will only take the user to their own profile page, as the user profile dynamic pages are unique to each user and only they have the access to view them.

if you use the Wix Members app on your website, then you can just look at using the Members/PrivatemembersData collection.
https://support.wix.com/en/site-members/setting-up-a-members-area
https://support.wix.com/en/article/corvid-wix-members-privatemembersdata-collection-fields

Although you may need to use the Wix Data Options to suppress checks/hooks.
https://www.wix.com/corvid/reference/draft/wix-data.html#WixDataOptions

The Wix Members app also has it’s own members page which show a profile of all site members that you can use.

Also, as you are using a repeater you will need to read about it too.
https://www.wix.com/corvid/reference/draft/$w.Repeater.html

Otherwise, a workaround is to have a separate dataset that stores all your users info that they want to be shown on their profile for other members to see and simply grab your data from that dataset to show in your repeater.

Or just use this simple repeater search option here.
https://www.vorbly.com/Vorbly-Code/WIX-CUSTOMIZED-SEARCH-BAR-USING-REPEATERS
https://www.vorbly.com/Vorbly-Code/WIX-REPEATER-WITH-MULTIPLE-FILTERS
https://www.vorbly.com/Vorbly-Code/WIX-REPEATER-WITH-SEARCH-BAR