Browse Source

CLDC-3627 Problem displaying apostrophes in browser tab title (#2643)

pull/2657/head
Manny Dinssa 4 months ago committed by GitHub
parent
commit
e604d358b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      app/helpers/application_helper.rb

1
app/helpers/application_helper.rb

@ -2,6 +2,7 @@ module ApplicationHelper
include Pagy::Frontend
def browser_title(title, pagy, *resources)
title = sanitize(title)&.gsub("&", "&")
if resources.any? { |r| r.present? && r.errors.present? }
"Error: #{[title, t('service_name'), 'GOV.UK'].select(&:present?).join(' - ')}"
else

Loading…
Cancel
Save