title: How to avoid query string parameters in MVC
body: <p>I have the following route</p>
  
  <pre><code>routes.MapRoute("CreateBook", "{controller}/{action}/{slug}/{name}", new { controller = "CreateBook", action = "Index" , slug = UrlParameter.Optional, name = UrlParameter.Optional});
  </code></pre>
  
  <p>For some reason, whenever I call RedirectToAction, the URL appears as </p>
  
  <blockquote>
    <p>return RedirectToAction("Parameters", new { slug=1234, name="helloworld" });</p>
  </blockquote>
  
  <p><a href="http://localhost/CreateBook/Parameters?slug=1234?name=helloworld" rel="nofollow">http://localhost/CreateBook/Parameters?slug=1234?name=helloworld</a></p>
  
  <p>What I would like is</p>
  
  <p><a href="http://localhost/CreateBook/Parameters/1234/helloworld" rel="nofollow">http://localhost/CreateBook/Parameters/1234/helloworld</a></p>
  
  <p>How do I achieve this?</p>