I have been looking through trying to find some way to redirect to an Index view from another controller.
Index
public ActionResult Index() {
You can use local redirect. Following codes are jumping the HomeController's Index page:
public class SharedController : Controller { // GET: // public IActionResult _Layout(string btnLogout) { if (btnLogout != null) { return LocalRedirect("~/Index"); } return View(); } }