diff --git a/app/models/operations/feature_flag.rb b/app/models/operations/feature_flag.rb index cbc273ebd635523ddb561686086d7fbf151efacb..defb27e12c029160b4e204b8dd9173d06d6ffd6e 100644 --- a/app/models/operations/feature_flag.rb +++ b/app/models/operations/feature_flag.rb @@ -105,7 +105,7 @@ def related_issues(current_user, preload:) end def path - Gitlab::Routing.url_helpers.project_feature_flag_path(project, self) + Gitlab::Routing.url_helpers.edit_project_feature_flag_path(project, self) end def hook_attrs diff --git a/spec/models/operations/feature_flag_spec.rb b/spec/models/operations/feature_flag_spec.rb index caf794a55d86bd185713a1ac0d6780259cb926af..638eb5597ad3dfdb97d726e45f2d305d64f36653 100644 --- a/spec/models/operations/feature_flag_spec.rb +++ b/spec/models/operations/feature_flag_spec.rb @@ -160,7 +160,7 @@ let(:feature_flag) { build(:operations_feature_flag, iid: 1, project: project) } it 'returns path of the feature flag' do - expect(feature_flag.path).to eq "/#{project.full_path}/-/feature_flags/1" + expect(feature_flag.path).to eq "/#{project.full_path}/-/feature_flags/1/edit" end end