From 505086a7c060d66cb9a16a6c4ecea536d6f0c2a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 06:35:19 +0000 Subject: [PATCH 1/3] Initial plan From 18bfd8ef61d20c48ffc9559e38813ca261f8d371 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 06:43:03 +0000 Subject: [PATCH 2/3] fix: add error page chapter navigation action Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/6b13d96a-7257-4f57-984d-9d59b791e7f7 Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- EssentialCSharp.Web.Tests/FunctionalTests.cs | 7 ++++++- EssentialCSharp.Web/Views/Home/Error.cshtml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/EssentialCSharp.Web.Tests/FunctionalTests.cs b/EssentialCSharp.Web.Tests/FunctionalTests.cs index 31aa723e..1defcb2c 100644 --- a/EssentialCSharp.Web.Tests/FunctionalTests.cs +++ b/EssentialCSharp.Web.Tests/FunctionalTests.cs @@ -51,5 +51,10 @@ public async Task WhenTheApplicationStarts_NonExistingPage_GivesCorrectStatusCod using HttpResponseMessage response = await client.GetAsync("/non-existing-page1234"); await Assert.That(response.StatusCode).IsEqualTo(HttpStatusCode.NotFound); + + string content = await response.Content.ReadAsStringAsync(); + await Assert.That(content).Contains("Go Home"); + await Assert.That(content).Contains("Go Back"); + await Assert.That(content).Contains("Browse Chapters"); } -} \ No newline at end of file +} diff --git a/EssentialCSharp.Web/Views/Home/Error.cshtml b/EssentialCSharp.Web/Views/Home/Error.cshtml index 46371eb6..92a49900 100644 --- a/EssentialCSharp.Web/Views/Home/Error.cshtml +++ b/EssentialCSharp.Web/Views/Home/Error.cshtml @@ -16,6 +16,7 @@ }
Go Home + Browse Chapters