mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Don't redirect Google to nocdn=true, and remove canonical URL until we sort out translated domains
This commit is contained in:
parent
c9a17982cf
commit
06d67835e4
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
link(rel="icon", href="/favicon.ico")
|
link(rel="icon", href="/favicon.ico")
|
||||||
link(rel='stylesheet', href=buildCssPath('/style.css'))
|
link(rel='stylesheet', href=buildCssPath('/style.css'))
|
||||||
|
|
||||||
link(rel="canonical", href=settings.siteUrl+currentUrl)
|
|
||||||
if settings.i18n.subdomainLang
|
if settings.i18n.subdomainLang
|
||||||
each subdomainDetails in settings.i18n.subdomainLang
|
each subdomainDetails in settings.i18n.subdomainLang
|
||||||
if !subdomainDetails.hide
|
if !subdomainDetails.hide
|
||||||
|
@ -58,7 +57,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
var noCdnKey = "nocdn=true"
|
var noCdnKey = "nocdn=true"
|
||||||
var cdnBlocked = typeof jQuery === 'undefined'
|
var cdnBlocked = typeof jQuery === 'undefined'
|
||||||
var noCdnAlreadyInUrl = window.location.href.indexOf(noCdnKey) != -1 //prevent loops
|
var noCdnAlreadyInUrl = window.location.href.indexOf(noCdnKey) != -1 //prevent loops
|
||||||
if (cdnBlocked && !noCdnAlreadyInUrl) {
|
if (cdnBlocked && !noCdnAlreadyInUrl && navigator.userAgent.indexOf("Googlebot") == -1) {
|
||||||
window.location.search += '&'+noCdnKey;
|
window.location.search += '&'+noCdnKey;
|
||||||
}
|
}
|
||||||
script(src=buildJsPath("libs/angular-1.3.15.min.js", {fingerprint:false}))
|
script(src=buildJsPath("libs/angular-1.3.15.min.js", {fingerprint:false}))
|
||||||
|
|
Loading…
Reference in a new issue