Javascript – How do I get & and = to show up in html query
I need to generate the following deviceSearch?q=4100&origin=pdp instead I am seeing deviceSearch?q=4100%26origin%3Dpdp Googling this problem it seems I cannot do this. I tried the following that did not work url.searchParams.set('q', item.selectionText); url.searchParams.append(name: origin, value: pdp); I tried joining the text…