From c009b3f0148d121980590fd71b2bd12a7558218a Mon Sep 17 00:00:00 2001
From: Donald Cook <dcook@gitlab.com>
Date: Thu, 12 Sep 2024 20:05:13 +0000
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Mario Celi <mcelicalderon@gitlab.com>
---
 app/models/operations/feature_flag.rb       | 2 +-
 spec/models/operations/feature_flag_spec.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/models/operations/feature_flag.rb b/app/models/operations/feature_flag.rb
index cbc273ebd6355..defb27e12c029 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 caf794a55d86b..638eb5597ad3d 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
 
-- 
GitLab