Hello,
I found some code from the Queen about the mentioned above, I have a question on one line of code that I believe is obsolete as it was written over 2 years ago. I believe the path is different now wondering if anyone knows how to find the current path or know what it is?
//This one is for Repeater Download with Name from Wix Dashboard Media Manager
//export function downloadB_click(event, $w) {
l//et repeaterData = $w("#repeater2").data;
//let $repeaterData = $w.at(event.context);
//let source = $repeaterData("#linkB").link;
//let name = source.split("/")[4];
//let url = source.split("/")[3];
Below is the code that I'd like to know what is the current path.
wixLocation.to(`https://docs.wixstatic.com/ugd/${url}?dn=${name}.pdf`);
}