diff --git a/app/controllers/user_projects_controller.rb b/app/controllers/user_projects_controller.rb index f8f2aa4e7..779d2479d 100644 --- a/app/controllers/user_projects_controller.rb +++ b/app/controllers/user_projects_controller.rb @@ -66,9 +66,9 @@ class UserProjectsController < ApplicationController ) respond_to do |format| - format.json { - redirect_to :action => :index_edit, :format => :json - } + format.json do + redirect_to project_users_edit_path(format: :json), turbolinks: false + end end else error = t('user_projects.create.can_add_user_to_project') @@ -110,9 +110,9 @@ class UserProjectsController < ApplicationController ) respond_to do |format| - format.json { - redirect_to :action => :index_edit, :format => :json - } + format.json do + redirect_to project_users_edit_path(format: :json), turbolinks: false + end end else respond_to do |format|