When I use Location.to() to send the user to a specific page with defined parameters (/somepage?someparameter=somevalue), the query part of the url persists - when the user changes pages or reloads the page, the "?someparameter=somevalue" is always present in the URL.
How can I have this part expire or delete it manually after getting the value? The page needs to be able to distinguish between a case when someone got to it directly and a case when someone gets there through a specific code (when the parameter is appended). So, once the value was used, it should be reset or deleted.
I know I can use wix-storage instead of url parameters, but if possible, I prefer not to go down that route.