Hi, i’m sending a parameter from 1 page to another via an Url:
let Url = wixLocation.baseUrl+“candidate?position=”+$w(“#request”).value;
wixLocation.to(Url);
It works fine i get it in the position in the candidate page, but in that page i have another links, and the parameter keeps showing in every other link, like the link :
changes to :
and from there all links that i click keep the ?position=531842
if a call the candidate page without the parameter everything works fine.
this is really weird, what can i be doing wrong? or how can i reset links to no parameters?
Thanks in advance!
Hey Bernabe,
Have you tried Dynamic Pages for Position? It’s basically codeless solution that handles routing for you.
https://support.wix.com/en/wix-code/dynamic-pages
Hey Adas,
I have also this issue sometimes. I am using a dynamic page along with this url parameters. I use these parameters to detect what user want to do on my dynamic page (like edit , save, update data etc…) … and based on these parameters I do actions on my database. But sometimes…only sometimes…these parameters wont go if i click on the back button in chrome and shows in every page i visit. So is there a solution for resting this url parameters, while navigating to other pages (for example with back , fwd button on chrome browser /using the website navigation using some buttons)?? thanks.
Adas, thanks for quick reply, i have plenty of Dynamic Pages, i just need to pass a parameter from one page to another, either page can be Dynamic or not, the problem is that after i send parameters in the Url, all Urls i click after that keep adding the parameter at the end of the Url in this case ?position=531842, it keeps adding to all Urls, i think it may be a bug.
Hi Bernabe,
This is by design.
If you wish to make this a little more transparent to your visitors you can save the job position number to the browser session storage instead of passing it as a query parameter.
See more here
Actually is what i did, thanks.