Skip to content

Commit 6481bd7

Browse files
committed
chore/Remove FF_NEW_CSR_URL code
The new url is live, and content-platform-proxy has been updated to include all the redirects. We can therefore remove all the feature flagged code
1 parent befff86 commit 6481bd7

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

config/routes.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ def valid_format?(request)
2323
# the path below.
2424
# If the dummy page entry that represents this app is moved in Contentful, this url will need to be updated,
2525
# a redirect added in Contentful, and the CloudFront config changed to reflect the new url.
26-
CSR_APP_PATH = if Feature.enabled?("FF_NEW_CSR_URL")
27-
"/consumer/energy/energy-supply/get-a-better-energy-deal/compare-domestic-energy-suppliers-customer-service/"
28-
else
29-
"/consumer/your-energy/get-a-better-energy-deal/compare-domestic-energy-suppliers-customer-service/"
30-
end
26+
CSR_APP_PATH = "/consumer/energy/energy-supply/get-a-better-energy-deal/compare-domestic-energy-suppliers-customer-service/"
3127

3228
Rails.application.routes.draw do
3329
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
@@ -39,13 +35,6 @@ def valid_format?(request)
3935

4036
constraints CountryConstraint.new do
4137
scope "(:country)" do
42-
if Feature.enabled?("FF_NEW_CSR_URL")
43-
get "/consumer/your-energy/get-a-better-energy-deal/compare-domestic-energy-suppliers-customer-service",
44-
to: redirect(CSR_APP_PATH)
45-
get "/consumer/your-energy/get-a-better-energy-deal/compare-domestic-energy-suppliers-customer-service/:id/details",
46-
to: redirect("#{CSR_APP_PATH}%{id}/details")
47-
end
48-
4938
# full table page
5039
get CSR_APP_PATH, to: "csr_table/suppliers#index", as: "suppliers"
5140

0 commit comments

Comments
 (0)