Does anybody know how to do this to a dynamic page where I need the url to include the _id of the current item at the end. I have been messing around with this for a couple days and not managing to get this right.
import wixLocation from 'wix-location';
export function buttonEdit_click(event) {
const currentItem = $w("#dynamicDataset").getCurrentItem(_id);
wixLocation.to("/edit-people/" + currentItem);
I am not even sure its possible this way from reading the api documentation, but it doesn’t seem to work if I use the GUI to “link to page” and also connect the button to the data source.
Just to note, that “#dynamicDataset” has been used on both pages