Normally i wouldn't put a title like this in the question, but i'm pretty sure it's a bug (or by design?)
I created a brand new ASP.NET MVC 3 Web Application.
Then i went to the /Home/About page.
The URL for this page is:
http://localhost:51419/Home/About
Then i changed the URL to this:
http://localhost:51419/(A(a))/Home/About
And the page worked? Looking at the route values, controller = Home, Action = About. It's ignored the first part?
And if i look at all the links in the source:
<link href="/(A(a))/Content/Site.css" rel="stylesheet" type="text/css" />
<script src="/(A(a))/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="/(A(a))/Scripts/modernizr-1.7.min.js" type="text/javascript"></script>
<li><a href="/(A(a))/">Home</a></li>
<li><a href="/(A(a))/Home/About">About</a></li>
See how it's maintained that first part? It's like the routing engine thinks it's part of the domain or something?
I've got a feeling it's a regex thing, because if i change the URL to:
http://localhost:51419/(a(a))/Home/About
(E.g changed the uppercase A to lowercase)
It 404's.
Can anyone shed some light on this? Is this a bug or by design?