I have an application that scans a qr- code. In that qr-code there is a URL with the following format:
https://www.mysite.com/pagename?Param1=Value1
So far so good.
Now, after this scanning and checking, user is led back to a menu. There is a button there with a link (defined in editor as a link to the same page pagename , but without any params)
But, if you check the link, it still holds the old link (with params):
https://www.mysite.com/pagename?Param1=Value1
I have checked this on several browsers, all the same. Is this a bug or a browser feature? If last, how do I prevent it?
EDIT: actually, the whole querystring gets attached to EVERY button (all defined as a link to a page, no params possible to add in editor)
EDIT2: I can make it even more simple: if you start Wix page 1 with a query param (…?Param1=Value1) then this query is added to every link in a button (pointing to a page) from then onwards, even if you reset the .link property in code (=without query).
EDIT3: it looks that this happens to every link. Just fire up any Wix page and add a query string …?foo=bar to the URL and then look what your menu´s carry for URL: they all have the foo=bar added. This looks like a bug.
EDIT 4: I have tried everything, but the query can only be read, not set. If you hard code a link like this “…pagename?this=a_bug”, then the link becomes “…pagename?this=a_bug&Param1=Value1”, meaning that the OLD query is added.