From 4a94a404b37a96dfde31ee4045944fbe84cbf342 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 8 Aug 2023 01:56:13 +0100 Subject: [PATCH] fix: fix legacy 301 route --- OliverBooth/Pages/Blog/Index.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OliverBooth/Pages/Blog/Index.cshtml.cs b/OliverBooth/Pages/Blog/Index.cshtml.cs index 3b960e6..1ab3065 100644 --- a/OliverBooth/Pages/Blog/Index.cshtml.cs +++ b/OliverBooth/Pages/Blog/Index.cshtml.cs @@ -57,7 +57,7 @@ public class Index : PageModel if (post is not null) { - return Redirect($"/blog/{post.Published:yyyy/MM}/{post.Slug}"); + return Redirect($"/blog/{post.Published:yyyy/MM/dd}/{post.Slug}"); } return NotFound();