levib:If somebody can create a minimal app where this bug shows up, I'll look into it.
Right, so if you create the default asp.net mvc application. Then add the following to the index.aspx view for the home controller (with the appropriate Imports)
<% using (Html.Form<HomeController>(h => h.About(), FormMethod.Post))
{ %>
<input type="submit" name="Submit" value="submit" />
<% } %>
Then the about action on the home controller should look like the following
1 public void About()
2 {
3 string urlReferrer = HttpContext.Request.UrlReferrer.ToString();
4
5 RenderView("About");
6 }
Now put a break point on line 5 and debug. When you hit the submit button on the front page the urlReferrer string will be something like "http://localhost:port/Home/About" BUT I would expect it to be "http://localhost:port/Home/Index" or "http://localhost:port/" or something along those lines.
Thanks for your help Levib. Regards, Charles.