I have a repeater that contains a list of members of a club. Each item includes the name of that member. I’ve set the name to be a link to that person’s bio page. The link works OK when its the signed in member’s own bio the link points to, but I’m getting the Wix 404 page whenever I try to navigate to another member’s page.
The code used to create the link is: let wMember = await findMemberProfile(itemData.memberId); let wfullName = wMember.firstName + " " + wMember.surname; if (bMember) { let wEntry = ‘ ’
+ wfullName +’ ’
console.log(“Load repeater” + wEntry);
$item(“#txtMember”).html = wEntry;
} else {
console.log(“Load repeater text only”);
$item(“#txtMember”).text = wfullName;
}
and the console shows the correct URL formed:
Load repeaterSarah Allen
If I sign in as the member in the failed link, I can see that persons bio OK, but not of any other member as before.
The database permissions are OK as the repeater gets populated correctly. Ive set the bio’s page permissions to Everyone to no effect.
Anyone spot what Im doing wrong? Does the NavigateTo command add something else to the URL that I’m missing by explicity stating the html string?
@allentrev88
That is because each members page within the Wix Members app is unique to each member, meaning that only the site member can view their own page.
Wix Members app already has a members profile page where all members are listed which you can use.
@givemeawhisky I was going to reply that I’m not using the Wix Members App when something clicked and I paused to investigate. I had originally started off using the Wix Members app to meet my club’s member use case, but it quickly ran into many problems such that i ended up only using the Wix Member app to support the Login, Forgot Password and Log Out procedures. I thought I had made all the necessary changes but when I re-looked at the Member Profile page I had, which is a dynamic page, it was still connected to the PrivateMemberData collection. Simply, changing it to be connected to my MemberProfile collection, which has the permissions I need to fulfill my use case, did the trick.
So, in a round about sort of way, thanks for your response and putting me onto the right track.