From ac92678f21ab9d7601ade3ed550e3468b6dbaecc Mon Sep 17 00:00:00 2001 From: Till Breuer Date: Wed, 20 Nov 2013 18:05:45 +0100 Subject: [PATCH] Fix redirect path after wiki menu item creation --- app/controllers/wiki_menu_items_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/wiki_menu_items_controller.rb b/app/controllers/wiki_menu_items_controller.rb index 4aa80f4970..55f22d3f43 100644 --- a/app/controllers/wiki_menu_items_controller.rb +++ b/app/controllers/wiki_menu_items_controller.rb @@ -78,7 +78,7 @@ class WikiMenuItemsController < ApplicationController # we may have just destroyed a new record # e.g. there was no menu_item before, and there is none now flash[:notice] = l(:notice_successful_update) if (!@wiki_menu_item.new_record? && changed) - redirect_back_or_default({ :action => 'edit', :id => @page_title }) + redirect_back_or_default({ :action => 'edit', :id => @page }) else respond_to do |format| format.html { render :action => 'edit', :id => @page }