+ Start a Discussion
akshay desai 9akshay desai 9 

Query in LWC

I have search box in header
when i search something i get search results in another page
but when i redirect to another page i want to show searchtext in searchbox which i didnt get
window.location.href = base_url + '/community/s/search-results?searchterm=' + searchquery + '&searchcontext=' + objType + '&globalsearch=true&aid=' + this.portalConfig.selectedAccount;
using this to redirect
Saravana Bharathi 1Saravana Bharathi 1
Hi Akshay,

Can you please post the code, where you are redirecting and redirected lwc, to see the actual code and issue in it.