Fixes the blog post removal
This commit is contained in:
parent
9fc7f82531
commit
a4d2e1b6da
5 changed files with 16 additions and 10 deletions
|
|
@ -245,6 +245,10 @@ namespace Yavsc.Controllers
|
|||
[Authorize]
|
||||
public ActionResult RemovePost (string user, string title, string returnUrl, bool confirm=false)
|
||||
{
|
||||
if (returnUrl == null)
|
||||
if (Request.UrlReferrer!=null)
|
||||
returnUrl = Request.UrlReferrer.AbsoluteUri;
|
||||
ViewData["returnUrl"]=returnUrl;
|
||||
if (!confirm)
|
||||
return View ("RemovePost");
|
||||
HttpStatusCodeResult res = BlogsApiController.RemovePost (user,title);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue