summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorEdgaras <edgaras.janusauskas@gmail.com>2018-01-04 22:57:56 +0100
committerDylan William Hardison <dylan@hardison.net>2018-01-04 22:57:56 +0100
commitc0cb3c9adc3d0666193510ee7c2201d4c56c4faf (patch)
tree153a5c3903fb056ae27fffc816d5b8a43e7d0447 /template
parent9a40386d8926844b9b57f2d616a36bc0abb3c734 (diff)
downloadbugzilla-c0cb3c9adc3d0666193510ee7c2201d4c56c4faf.tar.gz
bugzilla-c0cb3c9adc3d0666193510ee7c2201d4c56c4faf.tar.xz
Bug 1428166 - Move <meta charset> to start of <head>
The <meta> element declaring the encoding must be inside the <head> element and within the first 1024 bytes of the HTML as some browsers only look at those bytes before choosing an encoding. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/header.html.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 5d00b7216..aa6d1cecc 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -94,6 +94,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
+ [% IF Param('utf8') %]
+ <meta charset="UTF-8">
+ [% END %]
+
[%- js_BUGZILLA = {
param => {
maxusermatches => Param('maxusermatches'),
@@ -129,10 +133,6 @@
id="bugzilla-global" data-bugzilla="[% json_encode(js_BUGZILLA) FILTER html %]">
<title>[% title %]</title>
- [% IF Param('utf8') %]
- <meta charset="UTF-8">
- [% END %]
-
[% IF no_index %]
<meta name="robots" content="noindex">
[% END %]