Forum Discussion
Redirecting search queries to PnP Modern Search results page only fires once
Hello,
based on Mikael Svensons Ignite presentation I was eager to learn that you can redirect search queries to a PnP Modern Search results page. Has anyone encountered the issue that it only works for the initial query?
So from site collection A I'm entering a query that is passed on to site collection B which hosts the results page. The parameters passed are searchResults.aspx?k=test&ql=2055, for example.
I have configured the result source web part to use the page environments query parameter k.
The search results web part correctly shows hits for the query. However, I can't get a new query to fire.
When I use the out of the box modern page's search box the url in the address bar changes but it's not passed on to the search results web part:
When I refresh the browser page the new query is passed on and the web part shows the new results.
Is anyone experiencing this behaviour?
I though of putting a PnP Modern Search box onto the page for further queries but the results web part can only be connected to one source it seems.
Thanks.
1 Reply
- melkinscoIron ContributorWe ran into the same issue. It's more of a MSFT issue than the PnP side. We have search pages where we pass in parameters via the URL which is linked in the menu. The same search page may be linked multiple times, with each link passing different parameters via the URL. Once the page is loaded the first time, the page is loaded. Even though the URL is different (passing in a new value via the URL), SharePoint assumes it's the same page so it won't reload.