diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index de6417605..3ec25ec5a 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -6,6 +6,7 @@ using System.Threading; using System.Web; using System.Web.Mvc; using System.Web.Routing; +using LowercaseRoutesMVC; using NLog.Config; using Ninject; using Ninject.Web.Mvc; @@ -26,7 +27,7 @@ namespace NzbDrone.Web routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); - routes.MapRoute( + routes.MapRouteLowercase( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Series", action = "Index", id = UrlParameter.Optional } // Parameter defaults diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index f41b5d750..cb756f65c 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -63,6 +63,9 @@ ..\packages\EntityFramework.4.3.0\lib\net40\EntityFramework.dll + + ..\packages\LowercaseRoutesMVC.1.0.3\lib\LowercaseRoutesMVC.dll + True @@ -474,9 +477,6 @@ - - - diff --git a/NzbDrone.Web/packages.config b/NzbDrone.Web/packages.config index d41622f96..c75e7f8a8 100644 --- a/NzbDrone.Web/packages.config +++ b/NzbDrone.Web/packages.config @@ -16,6 +16,7 @@ + diff --git a/packages/LowercaseRoutesMVC.1.0.3/LowercaseRoutesMVC.1.0.3.nupkg b/packages/LowercaseRoutesMVC.1.0.3/LowercaseRoutesMVC.1.0.3.nupkg new file mode 100644 index 000000000..12bd682de Binary files /dev/null and b/packages/LowercaseRoutesMVC.1.0.3/LowercaseRoutesMVC.1.0.3.nupkg differ diff --git a/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.XML b/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.XML new file mode 100644 index 000000000..e2555a6ba --- /dev/null +++ b/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.XML @@ -0,0 +1,144 @@ + + + + LowercaseRoutesMVC + + + + + Contains extension methods to map routes to lowercase URLs. + + + + + Maps the specified URL route using a lowercase URL. Does not change casing in the querystring, if any. + + A collection of routes for the application. + The name of the route to map. + The URL pattern for the route. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and sets default route values. Does not change casing in the querystring, if any. + + A collection of routes for the application. + The name of the route to map. + The URL pattern for the route. + An object that contains default route values. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and sets the namespaces. Does not change casing in the querystring, if any. + + A collection of routes for the application. + The name of the route to map. + The URL pattern for the route. + A set of namespaces for the application. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and sets default route values and constraints. Does not change casing in the querystring, if any. + + A collection of routes for the application. + The name of the route to map. + The URL pattern for the route. + An object that contains default route values. + A set of expressions that specify valid values for a URL parameter. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and sets default route values and namespaces. Does not change casing in the querystring, if any. + + A collection of routes for the application. + The name of the route to map. + The URL pattern for the route. + An object that contains default route values. + A set of namespaces for the application. + A reference to the mapped route. + + + + Maps the specified URL route and sets default route values, constraints, and namespaces. Does not change casing in the querystring, if any. + + A collection of routes for the application. + The name of the route to map. + The URL pattern for the route. + An object that contains default route values. + A set of expressions that specify valid values for a URL parameter. + A set of namespaces for the application. + A reference to the mapped route. + + + + Contains extension methods to map routes in Areas to lowercase URLs. + + + + + Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property. Does not change casing in the querystring, if any. + + The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application. + The name of the route. + The URL pattern for the route. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values. Does not change casing in the querystring, if any. + + The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application. + The name of the route. + The URL pattern for the route. + An object that contains default route values. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified namespaces. Does not change casing in the querystring, if any. + + The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application. + The name of the route. + The URL pattern for the route. + A set of namespaces for the application. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values and constraints. Does not change casing in the querystring, if any. + + The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application. + The name of the route. + The URL pattern for the route. + An object that contains default route values. + A set of expressions that specify valid values for a URL parameter. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values and namespaces. Does not change casing in the querystring, if any. + + The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application. + The name of the route. + The URL pattern for the route. + An object that contains default route values. + A set of namespaces for the application. + A reference to the mapped route. + + + + Maps the specified URL route using a lowercase URL and associates it with the area that is specified by the AreaName property, using the specified route default values, constraints, and namespaces. Does not change casing in the querystring, if any. + + The context that encapsulates the information that is required in order to register an area within an ASP.NET MVC application. + The name of the route. + The URL pattern for the route. + An object that contains default route values. + A set of expressions that specify valid values for a URL parameter. + A set of namespaces for the application. + A reference to the mapped route. + + + diff --git a/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.dll b/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.dll new file mode 100644 index 000000000..2c2315b00 Binary files /dev/null and b/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.dll differ diff --git a/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.pdb b/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.pdb new file mode 100644 index 000000000..588cac576 Binary files /dev/null and b/packages/LowercaseRoutesMVC.1.0.3/lib/LowercaseRoutesMVC.pdb differ