Click on table row to open Dymanic pages

I am displaying the info of my #dataset1 on a table
I want to click on the row and have it open a Dynamic page, of course I want that link to be dynamic not static so I don’t need to configure everyone adds something to the dataset1

So I have a export function table1_rowSelect(event)
where i use wixLocation.to and it does work to internal pages like wixLocation.to(“/users”)
and to external like wixLocation.to(“http://wix.com”)
also works to static links to my dymanic pages: wixLocation.to(“/showevent/Romi-B-day”)
BUT! when i try the dynamic URL it shoes Error 404 when the website is public
wixLocation.to(“http://mysite.wixsite.com/showevent/{Event-Title}”)
wixLocation.to(“/showgroup/{Event-Title}”)

How can I do this then?

Hey, I know I’m a year late, but I had the same issue and I find a way to do that this morning… The “dynamic key” to your page must be a column on your table.

export function table1_rowSelect(event) {
    wixLocation.to('/showgroup/' + event.rowData.EventTitle);
}

To help you to debug or try to find a way of doing things, you should always “log” the event first to see what’s in there :slight_smile:

export function table1_rowSelect(event) {     
    console.log(event)
}
2 Likes