mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
deleted some old files. updated some ui
This commit is contained in:
parent
386bc90ae4
commit
d310c06f2e
107 changed files with 446 additions and 664 deletions
|
@ -20,15 +20,17 @@ namespace NzbDrone.Web
|
|||
|
||||
public static void RegisterRoutes(RouteCollection routes)
|
||||
{
|
||||
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
routes.IgnoreRoute("{*robotstxt}", new { robotstxt = @"(.*/)?robots.txt(/.*)?" });
|
||||
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
|
||||
|
||||
|
||||
routes.MapRoute(
|
||||
"Default", // Route name
|
||||
"{controller}/{action}/{id}", // URL with parameters
|
||||
new { controller = "Series", action = "Index", id = UrlParameter.Optional } // Parameter defaults
|
||||
);
|
||||
"Default", // Route name
|
||||
"{controller}/{action}/{id}", // URL with parameters
|
||||
new { controller = "Series", action = "Index", id = UrlParameter.Optional } // Parameter defaults
|
||||
);
|
||||
}
|
||||
|
||||
protected override void OnApplicationStarted()
|
||||
|
@ -68,6 +70,10 @@ namespace NzbDrone.Web
|
|||
if (lastError is HttpException)
|
||||
{
|
||||
Logger.WarnException(String.Format("{0}. URL[{1}]", lastError.Message, Request.Path), lastError);
|
||||
if (Request.Path.EndsWith(".aspx", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
Response.Redirect(Request.ApplicationPath);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue