From 136a4866ca0f25300d9d0e322dc98db4513f982c Mon Sep 17 00:00:00 2001 From: Vasilis The Pikachu Date: Tue, 28 Oct 2025 21:20:43 +0100 Subject: [PATCH] Make the default page the manage page The current index page is kinda useless, theres no useful information on it and most people are just logging in for the account management options. There is no point to the index page other then create confussion on how to get to the account settings page (It is not very obvious you have to click on the "Hello XYZ" link) right now and is much better to just redirect to the Management page directly. If you are not logged in you will be sent to the login screen, where theres 2 different places to click to signup for a new user. Hard to miss. --- SS14.Web/Controllers/HomeController.cs | 10 +--------- SS14.Web/Views/Home/Index.cshtml | 8 -------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 SS14.Web/Views/Home/Index.cshtml diff --git a/SS14.Web/Controllers/HomeController.cs b/SS14.Web/Controllers/HomeController.cs index 8a66ac9..58ae682 100644 --- a/SS14.Web/Controllers/HomeController.cs +++ b/SS14.Web/Controllers/HomeController.cs @@ -1,22 +1,14 @@ using System.Diagnostics; using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; using SS14.Web.Models; namespace SS14.Web.Controllers; public class HomeController : Controller { - private readonly ILogger _logger; - - public HomeController(ILogger logger) - { - _logger = logger; - } - public IActionResult Index() { - return View(); + return Redirect("/Identity/Account/Manage"); } public IActionResult Privacy() diff --git a/SS14.Web/Views/Home/Index.cshtml b/SS14.Web/Views/Home/Index.cshtml deleted file mode 100644 index 192ed77..0000000 --- a/SS14.Web/Views/Home/Index.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - -

Space Station 14 - AuthHub

- -This website is for managing your Space Station 14 account. Yes that's all it's for. -