Hi Scott
I created the default asp.net mvc2 project in VS2008 and changed the following code:
In the global.asax.cs I have this code:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"test", // Route name
"{browserName}/{browserVersion}/{locale}/{*packageName}",
new { controller = "Test", action = "Index", browserName = "IE", browserVersion = "8", locale = "en-US" , packageName = UrlParameter.Optional } // Parameter defaults
);
}
And next I added a TestController:
public class TestController : Controller
{
public ActionResult Index(
string browserName,
string browserVersion,
string locale,
string packageName)
{
return View();
}
}
And a empty Index View:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Index</h2>
</asp:Content>
for convenience I added a link in the site.master for the url you specified:
<li><a href="/FF/3/en-US/scripts/packages/6/super.js">Test</a></li>
Next I set a breakpoint in the Index action of the TestController.
When I hover over the packageName parameter I see "scripts/packages/6/super.js"
So I can't reproduce the behavior you got.
Are you using VS2008 and MVC2 or other versions?