title: Url appending 2nd querystring when using @Html.PagedListPager
body: <p>Does anyone know how to solve this problem, I have a search box and when I enter a search phrase and submit the form the url is:</p>
  
  <pre><code>http://localhost:50435/Search-Results-For?q=hotels&amp;Option=Web&amp;Page=1
  </code></pre>
  
  <p>When the results are returned, I can then page and the url is:</p>
  
  <pre><code>http://localhost:50435/Search-Results-For/hotels/web/2
  </code></pre>
  
  <p>But if I then try to do another search, that search is appended to the url above:</p>
  
  <pre><code>http://localhost:50435/Search-Results-For/hotels/web/2?q=poole&amp;Option=web&amp;Page=2
  </code></pre>
  
  <p>I have no idea how to solve this, I have tried putting the pager in a partialview, changing the parameters but nothing seems to work.</p>
  
  <p>Has anyone had this problem before or knows how to solve it.</p>
  
  <p>Pager:</p>
  
  <pre><code>&lt;div id="dvPagePager"&gt;@Html.PagedListPager((IPagedList)ViewBag.SearchResults, page =&gt; Url.Action("Results", new { Page = page, q = @ViewBag.q, Option = @ViewBag.b}), PagedListRenderOptions.OnlyShowFivePagesAtATime)&lt;/div&gt;
  </code></pre>
  
  <p>Form:</p>
  
  <pre><code>@using (Html.BeginRouteForm("SearchEngine", FormMethod.Get, new { @id = "frmSearchEngine" }))
                                      {
                                     { Html.RenderAction("pvSearchForm", "Home"); }
                                     //Html.RenderPartial("~/Views/Shared/pvSearchForm.cshtml");
                                      }
  </code></pre>
  
  <p>Route:</p>
  
  <pre><code>routes.MapRoute(
                  name: "SearchEngine",
                  url: "Search-Results-For/{q}/{Option}/{Page}",
                  defaults: new { controller = "Search", action = "Results", q = UrlParameter.Optional, Option = UrlParameter.Optional, Page = UrlParameter.Optional }
              );
  </code></pre>