fix: use correct route for /blog?p= redirect
This commit is contained in:
parent
d114870f87
commit
73f5e4e4a2
@ -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)!);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user