In an ASP MVC3 project a call to:-
<h2><a href="@Url.RouteUrl("_ScientificPrograms", new { idProgramaSeleccionado = @programa.Id, nombrePrograma = @programa.NombreProgramaUrl(), IdiomaSeleccion = idioma })">@programa.NombrePrograma(@idioma)</a></h2>
corresponding to a registered route in the Global.asax.cs file of:-
routes.MapRoute(
"_ScientificPrograms", // Route name
"{IdiomaSeleccion}/research/scientific-programmes/{idProgramaSeleccionado}/{nombrePrograma}/{idGrupoSeleccionado}/{nombreGrupo}",
new { controller = "Research", action = "ScientificProgrammes", IdiomaSeleccion = UrlParameter.Optional, idProgramaSeleccionado = UrlParameter.Optional, nombreGrupo = UrlParameter.Optional, idGrupoSeleccionado = UrlParameter.Optional, nombrePrograma = UrlParameter.Optional }
);
works fine running on my local machine producing urls like:-
http://localhost/es/research/scientific-programmes/1/molecular-oncology
When the website is deployed, however, the same call only produces
http://deployedsite/es/research/
although entering
http://deployedsite/es/research/scientific-programmes/1/molecular-oncology
does correctly resolve the page.
The same behaviour is observed both on my own test hosting and on my clients QA server. Other routing calls work fine but it appears that this one is some what special.