From 2cd79dfec480a450594d36022c445a4796c240e1 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sat, 31 Oct 2009 21:55:32 -0300 Subject: [PATCH] Redirect to the right place after saving article --- app/controllers/my_profile/cms_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index 7d0a34a..ae1ce55 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -269,7 +269,7 @@ class CmsController < MyProfileController if params[:back_to] == 'control_panel' redirect_to :controller => 'profile_editor', :profile => @profile.identifier elsif params[:back_to] == 'public_view' - redirect_to @article.view_url + redirect_to @article.view_url.merge(Noosfero.url_options) elsif params[:back_to] == 'media_listing' redirect_to :action => 'media_listing' elsif @article.parent -- libgit2 0.21.2