diff --git a/app/models/feedback_reporters/support_reporter.rb b/app/models/feedback_reporters/support_reporter.rb index df509eea1d..3c50eacf16 100644 --- a/app/models/feedback_reporters/support_reporter.rb +++ b/app/models/feedback_reporters/support_reporter.rb @@ -22,7 +22,7 @@ def custom_zoho_fields "cf_rollout" => rollout.presence || "Unknown", "cf_user_agent" => user_agent.presence || "Unknown user agent", "cf_ip" => ip_address.presence || "Unknown IP", - "cf_referer" => truncated_referer, + "cf_url" => truncated_referer, "cf_site_skin" => site_skin&.public ? site_skin.title : "Custom skin" } end diff --git a/spec/models/feedback_reporters/support_reporter_spec.rb b/spec/models/feedback_reporters/support_reporter_spec.rb index b21dc39019..90180eebbf 100644 --- a/spec/models/feedback_reporters/support_reporter_spec.rb +++ b/spec/models/feedback_reporters/support_reporter_spec.rb @@ -35,7 +35,7 @@ "cf_rollout" => "rollout_value", "cf_user_agent" => "HTTParty", "cf_ip" => "127.0.0.1", - "cf_referer" => "https://example.com/works/1", + "cf_url" => "https://example.com/works/1", "cf_site_skin" => "Reversi" } } @@ -120,7 +120,7 @@ end it "returns a hash containing a blank string for referer" do - expect(subject.report_attributes.dig("cf", "cf_referer")).to eq("Unknown URL") + expect(subject.report_attributes.dig("cf", "cf_url")).to eq("Unknown URL") end end @@ -130,7 +130,7 @@ end it "truncates the referer to 255 characters" do - expect(subject.report_attributes.dig("cf", "cf_referer").length).to eq(255) + expect(subject.report_attributes.dig("cf", "cf_url").length).to eq(255) end end