title: Why is using a URL containing a questionmark when redirecting gets a “potentially dangerous request”?
body: <p>I'm using  MVC3 and in my view I have the following code block;</p>
  
  <pre><code>Response.Redirect(@Url.Action("index","home", new {error = "test"}));
  </code></pre>
  
  <p>so the url i would expect is <a href="http://marketurk.co.uk/?error=test" rel="nofollow">http://marketurk.co.uk/?error=test</a> but I get is this <a href="http://marketurk.co.uk/%3Ferror=test" rel="nofollow">http://marketurk.co.uk/%3Ferror=test</a> so that I get potentially dangerous request.</p>
  
  <p>does anyone have the same issue, and could tell me what I'm doing wrong? </p>
  
  <p><em><strong>UPDATE:</em></strong>
  I moved my logic into a controller method as follows;</p>
  
  <pre><code>public ActionResult Index()
      {
  
          if (!User.Identity.IsAuthenticated)
              return RedirectToAction("index", "home", new { error = "test" });
  
          return View();
      }   
  </code></pre>
  
  <p>It still redirects to <em>http://marketurk.co.uk/%3Ferror=test</em></p>