diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs index 7874b5352b..39291cb5a2 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs @@ -22,6 +22,12 @@ namespace Volo.Blogging.Pages.Blog { var result = await _blogAppService.GetListAsync(); + if (result.Items.Count == 1) + { + var blog = result.Items[0]; + return RedirectToPage("./Posts/Index", new { blogShortName = blog.ShortName}); + } + Blogs = result.Items; return Page(); }