Volunteers-for-Salesforce
Volunteers-for-Salesforce copied to clipboard
PersonalSiteContactInfo: Broken Link If Volunteer Shift Added to Field Set
Use Case
If a customer adds the Volunteer Shift field to the PersonalSiteContactInfoHistory Volunteer Jobs Field Set, it shows up as a clickable link for volunteers. However, when they click on it, they are directed to a PageNotFound error.
This is happening because it is a standard "view" link in Salesforce and resolves to the Id of the record vs. how we handle a coded button on the scheduled shift component that directs volunteers to the GW_Volunteers__PersonalSiteJobListing Visualforce page with specific parameters.
Steps to Replicate
- In a V4S org, create a volunteer campaign, job.
- For that job, create one shift in the past and one in the future.
- Create a new contact
- Add that new contact to each of the newly created shifts.
- For the shift in the past, change the volunteer hours record status to Completed.
- For the shift in the future, set the volunteer hours record status to Confirmed.
- Ensure/Create the Volunteers Site and follow any config steps to get the site up and running.
- Update the Volunteer Hours field set PersonalSiteContactInfoHistory to include the Volunteer Shift
- Copy the contactID of the contact you've assigned to these shifts
- Navigate to the /GW_Volunteers__PersonalSiteContactInfo?contactid=
- Click on the link for the shift in the Your Recent Volunteer History - you should be rerouted to the PageNotFound page.
**lurch: add
This issue was split from its original Issue: #438
Tracking W-038420