From 9af027fe297ae3b67a6757f6a6da804da3b49bc4 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 18 Oct 2015 16:10:15 +0200 Subject: [PATCH] Fixes the redirection after bill edition --- web/ChangeLog | 4 ++++ web/Controllers/BlogsController.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/ChangeLog b/web/ChangeLog index 210db930..344b56b8 100644 --- a/web/ChangeLog +++ b/web/ChangeLog @@ -1,3 +1,7 @@ +2015-10-18 Paul Schneider + + * BlogsController.cs: Fixes the redirection after bill edition + 2015-10-18 Paul Schneider * App.master: diff --git a/web/Controllers/BlogsController.cs b/web/Controllers/BlogsController.cs index 7037dc65..acb8e344 100644 --- a/web/Controllers/BlogsController.cs +++ b/web/Controllers/BlogsController.cs @@ -295,7 +295,7 @@ namespace Yavsc.Controllers model.Id = BlogManager.Post (model.Author, model.Title, model.Content, model.Visible, model.AllowedCircles); if (model.Photo != null) BlogManager.UpdatePostPhoto (model.Id, model.Photo); - return RedirectToAction ("Title", new { id = model.Title }); + return RedirectToAction ("Title", new { title = model.Title }); } ViewData ["AllowedCircles"] = CircleManager.DefaultProvider.List (