I have a ASP.NET MVC 3 application in which I have to map a request with .aspx extension to another route. what i am trying to do is to get the current request url in application start. but the problem is it runs fine with all urls without .aspx extension but in a url for ex (http://example.com/Products/5/16/Eettafels.aspx) it shows only http://example.com/
however with http://example.com/Products/5/16/Eettafels it shows the correct path ..
All the code is a simple line:
string currentUrl = HttpContext.Current.Request.Url.ToString().ToLower();
Can any one have any idea what i am doing wrong