diff --git a/Src/VideoGameQuotes.Web/Global.asax.cs b/Src/VideoGameQuotes.Web/Global.asax.cs index 7b5e066..6b6c415 100644 --- a/Src/VideoGameQuotes.Web/Global.asax.cs +++ b/Src/VideoGameQuotes.Web/Global.asax.cs @@ -37,14 +37,11 @@ namespace VideoGameQuotes.Web { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("media/{*anything}"); - routes.MapRoute("about", "about", new { controller = "Home", action = "About" }); - routes.MapRoute("contact", "contact", new { controller = "Home", action = "Contact" }); - routes.MapRoute("submit", "submit", new { controller = "Quote", action = "Submit" }); - routes.MapRoute("search", "search", new { controller = "Quote", action = "Search" }); - routes.MapRoute("recent", "recent", new { controller = "Quote", action = "Recent" }); - routes.MapRoute("random", "random", new { controller = "Quote", action = "Random" }); - routes.MapRoute("create-category", "category/create", new { controller = "Quote", action = "CreateCategory" }); + routes.MapRoute("home", "{action}", new { controller = "Home", action = "Index" }, new { action = "about|contact" }); + routes.MapRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|search|recent|random|best" }); routes.MapRoute("individual-quote", "quote/{id}/{*text}", new { controller = "Quote", action = "Quote" }, new { id = @"\d+" }); + routes.MapRoute("create-category", "category/create", new { controller = "Quote", action = "CreateCategory" }); + routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional }); } } diff --git a/Src/VideoGameQuotes.Web/Views/Shared/Site.Master b/Src/VideoGameQuotes.Web/Views/Shared/Site.Master index 3684904..e0bba99 100644 --- a/Src/VideoGameQuotes.Web/Views/Shared/Site.Master +++ b/Src/VideoGameQuotes.Web/Views/Shared/Site.Master @@ -22,11 +22,11 @@