From 82c5a80f32e8c334bea9ff211e4289c883790ef8 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 27 Jul 2022 16:58:18 -0400 Subject: [PATCH] Fix report urls --- .../Controllers/ReportController.cs | 2 +- .../Pages/Partials/ReportPartial.cshtml | 4 ++-- ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/ReportController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/ReportController.cs index 9883a7d7..484837ba 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/ReportController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/ReportController.cs @@ -49,7 +49,7 @@ public class ReportController : ControllerBase await WebhookHelper.SendWebhook( title: "New grief report", description: $"Submitted by {user.Username}\n" + - $"To view it, click [here]({ServerConfiguration.Instance.ExternalUrl}/admin/report/{report.ReportId}).", + $"To view it, click [here]({ServerConfiguration.Instance.ExternalUrl}/moderation/report/{report.ReportId}).", dest: WebhookHelper.WebhookDestination.Moderation ); diff --git a/ProjectLighthouse.Servers.Website/Pages/Partials/ReportPartial.cshtml b/ProjectLighthouse.Servers.Website/Pages/Partials/ReportPartial.cshtml index 7059919e..413656a3 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Partials/ReportPartial.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Partials/ReportPartial.cshtml @@ -42,11 +42,11 @@
- + Dismiss - + Remove all related assets diff --git a/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml index 738d1dd1..bf316412 100644 --- a/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml @@ -1,4 +1,4 @@ -@page "/admin/report/{reportId:int}" +@page "/moderation/report/{reportId:int}" @model LBPUnion.ProjectLighthouse.Servers.Website.Pages.ReportPage @{