summaryrefslogtreecommitdiff
path: root/app/controllers/registrations
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/registrations')
-rw-r--r--app/controllers/registrations/experience_levels_controller.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/registrations/experience_levels_controller.rb b/app/controllers/registrations/experience_levels_controller.rb
index 38cffff91eb..23126983eb5 100644
--- a/app/controllers/registrations/experience_levels_controller.rb
+++ b/app/controllers/registrations/experience_levels_controller.rb
@@ -7,12 +7,20 @@ module Registrations
before_action :check_experiment_enabled
before_action :ensure_namespace_path_param
+ feature_category :navigation
+
def update
current_user.experience_level = params[:experience_level]
if current_user.save
hide_advanced_issues
- redirect_to group_path(params[:namespace_path])
+ record_experiment_user(:default_to_issues_board)
+
+ if experiment_enabled?(:default_to_issues_board) && learn_gitlab.available?
+ redirect_to namespace_project_board_path(params[:namespace_path], learn_gitlab.project, learn_gitlab.board)
+ else
+ redirect_to group_path(params[:namespace_path])
+ end
else
render :show
end