I have the following code working perfectly fine.
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {
let url = wixLocation . url ;
$w ( “#input4” ). value = url ;
In the case above, I have the URL automatically entered into the input field. I’m not sure why the the same is not working, when i implement the following code:
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {
let query = wixLocation . query ;
$w ( “#input4” ). value = query ;
In this case, nothing is being entered into the input field. What am i doing wrong?
I got the parameter from this URL - wix-location-frontend - Velo API Reference - Wix.com