Skip to content

Change Startup page

Victor Tomaili edited this page May 3, 2021 · 1 revision

Splitted the cheat sheet of Wesley Huang into more specific parts for easier finding the topics.

Change Starting Page

To change the Starting Page, go to the xyzPage.cs you want to be your initial page and update the 'Route' attribute to [Route("~/")] on the Action Result.

[RoutePrefix("Dashboard"), Route("{action=index}")]
    public class xyzController : Controller
    {
        [Authorize, HttpGet, Route("~/")]
        public ActionResult Index()
        {
Clone this wiki locally