File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3228Rails . 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
You can’t perform that action at this time.
0 commit comments