From 48da9ab044705437da9e065b0419e018bd86ea2b Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Fri, 7 Sep 2018 10:05:16 +0300 Subject: [PATCH] blog module cancel button in edit page returns to post --- .../src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml | 2 +- .../src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml index fc9740b600..5cf5b1b5cc 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml @@ -49,7 +49,7 @@
- @L["Cancel"] + @L["Cancel"]
diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml.cs b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml.cs index e2f0aab317..0aa2778bad 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml.cs +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Edit.cshtml.cs @@ -14,6 +14,9 @@ namespace Volo.Blogging.Pages.Blog.Posts private readonly IPostAppService _postAppService; private readonly IBlogAppService _blogAppService; + [BindProperty(SupportsGet = true)] + public string BlogShortName { get; set; } + [BindProperty(SupportsGet = true)] public string PostId { get; set; }