I have a button with a link to an internal page within my site. I would like to add a parameter to that link. I have found that I can include the whole domain, page and parameter like this: “https://www.mysite.com?grade=1” as a WEB ADDRESS link, but is there a way to keep the internal link using the PAGE link option, and then append the parameter of “?grade=1” to that link?
This could be helpful…
https://www.wix.com/corvid/reference/wix-location
Super helpful! Thank you…the only issue is that my objects are in a repeater and they ALL HAVE THE SAME ID…which is a problem.
Is there a way to pinpoint each button within the repeaters separately using CORVID?
I see there is an item scope selector that may work. So if I have #button4 how can I set that link URL to include specific parameter and the next #button4 to use a different parameter? I have 9 buttons with Grades K-8 listed and need the grade level as part of the URL link.
I did get this working now. Thanks for pointing me in the right direction. Grabbing the item scope and the text from within that specific item and appending it to my URL. Works great!
$w( “#buttonGrade” ).onClick( (event) => {
let $item = $w.at(event.context);
wixLocation.to( “/k-8-learning-resources?grade=” +$item( “#textGrade” ).text )
} );