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 @@ }
- @await Html.PartialAsync("Partials/CommentsPartial", ViewData.WithLang(language).WithTime(timeZone)) + @await Html.PartialAsync("Partials/CommentsPartial", new ViewDataDictionary(ViewData.WithLang(language).WithTime(timeZone)) + { { "PageOwner", Model.Slot?.CreatorId }, })
diff --git a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml index f267f796..9785b060 100644 --- a/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/UserPage.cshtml @@ -164,7 +164,8 @@ }
- @await Html.PartialAsync("Partials/CommentsPartial", ViewData.WithLang(language).WithTime(timeZone)) + @await Html.PartialAsync("Partials/CommentsPartial", new ViewDataDictionary(ViewData.WithLang(language).WithTime(timeZone)) + { {"PageOwner", Model.ProfileUser.UserId}, })
@@ -193,7 +194,7 @@
- @if (Model.HeartedSlots?.Count == 0) + @if (Model.Slots?.Count == 0) {

This user hasn't published any levels

}