mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Sitemap bugfixes, make routes consistent.
This commit is contained in:
parent
48acb8d39c
commit
b26627d1fd
|
@ -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 }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user