I’m relatively new to WixCode and have only basic knowledge of coding in general. I need help regarding the proper code to link repeater results to their specific dynamic item pages from the results of a search function. So far, all the articles I’ve found online only point to linking to dynamic item pages from repeater results when preset, just like with a category page. What if the repeater results were generated by search function?
Hi! I’m trying to link dynamic pages to search results. I’ve used the code provided in another discussion. I’m having trouble with the dynamic link format that should be inserted in the following code. I tries several several variation but keep getting the error “undefined link”:
export function resultsTable_rowSelect(event) {
let rowData = event.rowData;
let rowIndex = event.rowIndex;
const myRow = event.target.rows[rowIndex];
wixLocation.to(`${myRow[link-myDynamicPage-_id]}`)
}
Below is attached to format of my dynamic links:
Please help, Thanks!