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
|
var route = new
|
||||||
{
|
{
|
||||||
area = "blog",
|
|
||||||
year = post.Published.ToString("yyyy"),
|
year = post.Published.ToString("yyyy"),
|
||||||
month = post.Published.ToString("MM"),
|
month = post.Published.ToString("MM"),
|
||||||
day = post.Published.ToString("dd"),
|
day = post.Published.ToString("dd"),
|
||||||
slug = post.Slug
|
slug = post.Slug
|
||||||
};
|
};
|
||||||
return Redirect(Url.Page("/Article", route)!);
|
return Redirect(Url.Page("/Blog/Article", route)!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user