From cdb9330d6dab8be269287aa02159b9a1eb619872 Mon Sep 17 00:00:00 2001 From: kumojima Date: Wed, 26 Aug 2026 15:32:57 +0900 Subject: fix redirect groups controller --- app/controllers/groups_controller.rb | 4 ++-- test/functional/groups_controller_test.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 69f3cc77a..3ce05cd5a 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -92,7 +92,7 @@ class GroupsController < ApplicationController respond_to do |format| if @group.save flash[:notice] = l(:notice_successful_update) - format.html {redirect_to_referer_or(groups_path)} + format.html {redirect_to(edit_group_path(@group))} format.api {render_api_ok} else format.html {render :action => "edit"} @@ -105,7 +105,7 @@ class GroupsController < ApplicationController @group.destroy respond_to do |format| - format.html {redirect_to_referer_or(groups_path)} + format.html {redirect_to(groups_path)} format.api {render_api_ok} end end diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb index 8c012ffea..4fa2a8d73 100644 --- a/test/functional/groups_controller_test.rb +++ b/test/functional/groups_controller_test.rb @@ -180,7 +180,7 @@ class GroupsControllerTest < Redmine::ControllerTest } } ) - assert_redirected_to '/groups' + assert_redirected_to '/groups/10/edit' group = Group.find(10) assert_equal new_name, group.name end -- 2.34.1