fix: use correct route for /blog?p= redirect

This commit is contained in:
Oliver Booth 2023-09-20 14:48:26 +01:00
parent d114870f87
commit 73f5e4e4a2
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 1 additions and 2 deletions

View File

@ -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)!);
}
}