Im using Search Navigation web part to navigate to a search result page when user decides to do a scoped search. Im trying to pass all scoped search to the same search result page, instead of different search page per scope. When user click's on the item of the Search Navigation, SharePoint passes the search box keyword as query string parameter, which is expected:


My question is, how to add another query string parameter that will identify the scope of my search and point to:


When I update the Search Navigation item's url to point to:


Then SharePoint creates the invalid URL with 2 question marks when user types a search and clicks on the item:


Any ideas?


We ran into this same issue. What we did was create a custom handler that knew which URLs to look for then re-route them. For instance, we would have URLs like:


The handler reads the URL and knows where to take the token from and then we construct the same JSON object that search would when you use refinement panels.

Like you mentioned, trying any other way to tie another query into Search Navigation hasn't worked for us and resulted in double ? parameters which won't work.

| improve this answer | |

Scopes are s=Your%20Scope and k as you have it is your term.

| improve this answer | |
  • Eric, i should have not used word "scope". What i meant is, pass a second parameter that will identify something for me, could be either scope, path, property, category etc that will be used as URLToken.ParameterName in the query text of the search web part on the search result page – chris May 16 '13 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.