Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/default.tmpl

Issue 29588973: Issue 5683 - Made og:url locale specific (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created Oct. 25, 2017, 7:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
===================================================================
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -34,17 +34,17 @@
<meta property="og:description" content="{{ description | translate("description") }}">
{% endif %}
<meta property="og:locale" content="{{ locale | to_og_locale }}">
{% for alternate_locale in available_locales %}
{% if alternate_locale != locale %}
<meta property="og:locale:alternate" content="{{ alternate_locale | to_og_locale }}">
{% endif %}
{% endfor %}
- <meta property="og:url" content="{{ get_canonical_url(page | ignore_browsers) }}">
+ <meta property="og:url" content="{{ config.get("general", "siteurl") }}{{ source.resolve_link(page | ignore_browsers, locale)[1] }}">
ire 2017/10/26 09:59:45 Didn't know about this `source.resolve_link()` fun
juliandoucette 2017/10/26 11:31:41 See https://hg.adblockplus.org/cms/file/tip/cms/so
{# twitter https://dev.twitter.com/cards/markup #}
<meta name="twitter:site" content="@AdblockPlus" />
<meta name="twitter:creator" content="@AdblockPlus" />
<link rel="stylesheet" href="/css/main.css" class="cssfx">
<link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000px)" class="cssfx">
<link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px)">
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld