]> git.openstreetmap.org Git - rails.git/commitdiff
Add X-UA-Compatible meta tag
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 14 Nov 2013 18:17:27 +0000 (10:17 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 14 Nov 2013 18:17:27 +0000 (10:17 -0800)
Rails 4 removed the `BestStandardsSupport` middleware, because
supposedly a HTML5 doctype accomplishes the same thing. But not
quite -- without X-UA-Compatible, the UI for changing compatibility
mode is still visible, and users can get themselves into a bad state
(see https://github.com/openstreetmap/openstreetmap-website/pull/498#issuecomment-28483550)

app/views/layouts/_head.html.erb

index 95984ca974506345605928906bc4ca4a23200f06..2649354f53db4a88bd9ed79845d3287c4ed3da18 100644 (file)
@@ -1,4 +1,5 @@
 <head>
+  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
   <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
   <%= javascript_include_tag "application" %>
   <!--[if lt IE 7]><%= javascript_include_tag "pngfix" %><![endif]--> <!-- thanks, microsoft! -->