Sitemap bugfixes, make routes consistent.

This commit is contained in:
Thomas Hounsell 2014-10-31 21:30:48 +00:00
parent 48acb8d39c
commit b26627d1fd
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ public static void RegisterRoutes(RouteCollection routes)
routes.MapRoute( routes.MapRoute(
name: "Year", name: "Year",
url: "year/{year}/{page}/", url: "year/{year}/page/{page}/",
defaults: new { controller = "Build", action = "year", page = 1 } defaults: new { controller = "Build", action = "year", page = 1 }
); );
@ -72,7 +72,7 @@ public static void RegisterRoutes(RouteCollection routes)
routes.MapRoute( routes.MapRoute(
name: "Source", name: "Source",
url: "source/{source}/{page}/", url: "source/{source}/page/{page}/",
defaults: new { controller = "Build", action = "source", page = 1 } defaults: new { controller = "Build", action = "source", page = 1 }
); );

View File

@ -162,7 +162,7 @@ orderby bv.Key
UrlParams = new RouteValueDictionary(new UrlParams = new RouteValueDictionary(new
{ {
controller = "build", controller = "build",
action = "version", action = "lab",
lab = bv.Key, lab = bv.Key,
page = 1 page = 1
}), }),
@ -195,7 +195,7 @@ orderby bv.Key
UrlParams = new RouteValueDictionary(new UrlParams = new RouteValueDictionary(new
{ {
controller = "build", controller = "build",
action = "version", action = "source",
source = bv.Key, source = bv.Key,
page = 1 page = 1
}), }),