fix: fix legacy 301 route
This commit is contained in:
parent
b584bb84a2
commit
4a94a404b3
@ -57,7 +57,7 @@ public class Index : PageModel
|
|||||||
|
|
||||||
if (post is not null)
|
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();
|
return NotFound();
|
||||||
|
Loading…
Reference in New Issue
Block a user