From 73f5e4e4a233b20563dd296f86c1741f072d16b2 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 20 Sep 2023 14:48:26 +0100 Subject: [PATCH] fix: use correct route for /blog?p= redirect --- OliverBooth/Pages/Blog/Index.cshtml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OliverBooth/Pages/Blog/Index.cshtml.cs b/OliverBooth/Pages/Blog/Index.cshtml.cs index 21b44ec..97104b6 100644 --- a/OliverBooth/Pages/Blog/Index.cshtml.cs +++ b/OliverBooth/Pages/Blog/Index.cshtml.cs @@ -40,12 +40,11 @@ public class Index : PageModel { var route = new { - area = "blog", year = post.Published.ToString("yyyy"), month = post.Published.ToString("MM"), day = post.Published.ToString("dd"), slug = post.Slug }; - return Redirect(Url.Page("/Article", route)!); + return Redirect(Url.Page("/Blog/Article", route)!); } }