Wix-location query persists once used

A workaround (which I was using before I decided to be ‘clever’ and use a url query) is to store the needed parameter(s) in either session or local storage. Then to ‘get’ it on the target page, and, importantly, clear it.

//Before call to wixLocation.to(url)
local.setItem('parameterName', parameterValue)

// and on the target page
let parameterValue = local.getItem('parameterName');
local.setItem('parameterName', ''); // forget the parameterValue for the next time this page loads