I’m early in the design of this website and have rudimentary pages in place until I have the concepts down and can flesh them out.
I’ve set up a search of my collection to populate a table. I want users to be able to click on a row and have it go to the page for that item. But as of now, when they click on a row, it goes to the repeater page rather than the page for that item.
For example, from dot-iv .com/threat-database, if I search on “Kaczynski” and then select that row from the table, I want it to go to dot-iv .com/case-database/unabomber. However, it goes to dot-iv. com/case-database.
The code I’m using is
$w( “#table1” ).onRowSelect((event) => {
let rowData = event.rowData;
wixLocation.to( “/case-database/” + “#eventUniqueName” );
});
I know from the debug that rowData is being properly populated and eventUniqueName = Unabomber.
What have I got wrong here?
Also, once I have this working – for other searches, the eventUniqueName will be more than one word, so the table result will have spaces. But the URL replaces the spaces with dashes – is there a way to deal with that issue for the location code?