diff --git a/ProjectLighthouse.Servers.Website/Pages/Login/LoginForm.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/Login/LoginForm.cshtml.cs index ad9b18d4..c9852c60 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Login/LoginForm.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/Login/LoginForm.cshtml.cs @@ -137,10 +137,8 @@ public class LoginForm : BaseLayout } - if (string.IsNullOrWhiteSpace(redirect)) - { - return this.RedirectToPage(nameof(LandingPage)); - } + if (string.IsNullOrWhiteSpace(redirect)) return this.Redirect("~/"); + return this.Redirect(redirect); } @@ -148,7 +146,7 @@ public class LoginForm : BaseLayout public IActionResult OnGet() { if (this.Database.UserFromWebRequest(this.Request) != null) - return this.RedirectToPage(nameof(LandingPage)); + return this.Redirect("~/"); return this.Page(); } diff --git a/ProjectLighthouse.Servers.Website/Pages/Login/RegisterForm.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/Login/RegisterForm.cshtml.cs index 0453a09f..6d3637ca 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Login/RegisterForm.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/Login/RegisterForm.cshtml.cs @@ -114,7 +114,7 @@ public class RegisterForm : BaseLayout if (ServerConfiguration.Instance.Mail.MailEnabled) return this.Redirect("~/login/sendVerificationEmail"); - return this.RedirectToPage(nameof(LandingPage)); + return this.Redirect("~/"); } [UsedImplicitly] diff --git a/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml index 73a0b065..d773ff41 100644 --- a/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/SlotPage.cshtml @@ -112,7 +112,8 @@ }
This user hasn't published any levels
}