osmcha-frontend
osmcha-frontend copied to clipboard
Prevent Google Translate from showing up randomly
The issue I hoped to fix with https://github.com/mapbox/osmcha-frontend/pull/391 is still there, even tough the ne code is live on production (see below).
A description of the issue is part of the above PR.
Any ideas where this comes from?
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name="google" value="notranslate"><link rel="shortcut icon" href="https://osmcha.mapbox.com/favicon.ico"><link rel="preconnect" href="https://osmcha-django-staging.tilestream.net"><title>OSM Changeset Analyzer</title><script type="text/javascript">"http:"==location.protocol&&(location.href=location.href.replace(/^http:/,"https:")),function(o){if(console.log(o.host.indexOf("github.io")),o.search&&-1<o.host.indexOf("github.io")){var t={};o.search.slice(1).split("&").forEach(function(o){var i=o.split("=");t[i[0]]=i.slice(1).join("=").replace(/~and~/g,"&")}),void 0!==t.p&&window.history.replaceState(null,null,o.pathname.slice(0,-1)+(t.p\|\|"")+(t.q?"?"+t.q:"")+o.hash)}}(window.location)</script><link href="https://osmcha.mapbox.com/static/css/main.cbc6bc3b.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="https://osmcha.mapbox.com/static/js/main.e0fedda0.js"></script></body></html>
I suspect that this is something within your user agent. I've never experienced the described problem, myself.
Adding the meta element to the HTML may, instead, instruct Google to not translate the page containing said meta element.