Browse Source

Merge pull request #149 from communitiesuk/CLDC-764/PageTitlesErrorPrefix

Cldc 764/page titles error prefix
pull/151/head
Matthew J. Phelan 3 years ago committed by GitHub
parent
commit
42b3d8a3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/helpers/application_helper.rb

2
app/helpers/application_helper.rb

@ -1,7 +1,7 @@
module ApplicationHelper module ApplicationHelper
def browser_title(title) def browser_title(title)
if user_log_errors || case_log_errors || resource_errors if user_log_errors || case_log_errors || resource_errors
["Error", title, t("service_name"), "GOV.UK"].select(&:present?).join(" - ") "Error: #{[title, t("service_name"), "GOV.UK"].select(&:present?).join(" - ")}"
else else
[title, t("service_name"), "GOV.UK"].select(&:present?).join(" - ") [title, t("service_name"), "GOV.UK"].select(&:present?).join(" - ")
end end

Loading…
Cancel
Save