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

Unified Diff: templates/default.tmpl

Issue 29588976: Issue 5683 - Made og:url locale specific (Closed) Base URL: https://hg.adblockplus.org/web.adblockbrowser.org
Patch Set: Created Oct. 25, 2017, 8:02 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
@@ -26,17 +26,17 @@
<meta property="og:description" content="{{ description | translate("meta-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) }}">
+ <meta property="og:url" content="{{ config.get("general", "siteurl") }}{{ source.resolve_link(page, locale)[1] }}">
<link rel="canonical" href="{{ get_canonical_url(page) }}" />
<link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
<link rel="apple-touch-icon" href="/images/favicon-large.png" />
{{head|safe}}
<!--[if lt lte 9]>
<script src="/js/html5shiv.min.js"></script>
<![endif]-->
</head>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld