fails in MVC Preview 2 when applying to AccountController.LogOn
问题 When trying to apply [RequireHttps] to AccountController.Logon in ASP.NET MVC 2 Preview 2 I get the following error : ASP.NET detected invalid characters in the URL. This is because ASP.NET has rewritten my request from http://example.com/admin to https://example.com/account/logon%3FReturnUrl=/admin It is ASP.NET itself that has added ReturnURL (not ASP.NET MVC), but it is the RequireHttps attribute that is redirecting and messing up the URL. The %3F instead of ? is breaking the page. I think