Make <meta property="og:url"> tags have an absolute URL
Most of those can simply use `{{ request.url }}`, as this already contains the absolute URL of the currently displayed page.
This commit is contained in:
@@ -19,7 +19,7 @@ html(lang="en")
|
||||
|
||||
| {% block og %}
|
||||
meta(property="og:title", content="Blender Cloud")
|
||||
meta(property="og:url", content="https://cloud.blender.org")
|
||||
meta(property="og:url", content="{{ request.url }}")
|
||||
meta(property="og:type", content="website")
|
||||
meta(property="og:image", content="{{ url_for('static', filename='assets/img/backgrounds/background_gleb_locomotive.jpg')}}")
|
||||
meta(property="og:description", content="Blender Cloud is a web based service developed by Blender Institute that allows people to access the training videos and all the data from the open projects.")
|
||||
|
@@ -51,7 +51,7 @@ meta(name="twitter:description", content="Blender Cloud, your source for open co
|
||||
|
||||
| {% endif %}
|
||||
|
||||
meta(property="og:url", content="{{url_for('projects.view_node', project_url=project.url, node_id=node._id)}}")
|
||||
meta(property="og:url", content="{{url_for('projects.view_node', project_url=project.url, node_id=node._id), _external=True}}")
|
||||
| {% else %}
|
||||
meta(property="og:title", content="{{ project.name }} Blog on Blender Cloud")
|
||||
meta(name="twitter:title", content="{{ project.name }} Blog on Blender Cloud")
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
| {% block og %}
|
||||
meta(property="og:type", content="website")
|
||||
meta(property="og:url", content="https://cloud.blender.org")
|
||||
meta(property="og:url", content="{{ request.url }}")
|
||||
|
||||
meta(property="og:title", content="{{ page_title }} on Blender Cloud")
|
||||
meta(name="twitter:title", content="{{ page_title }} on Blender Cloud")
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
| {% block og %}
|
||||
meta(property="og:type", content="website")
|
||||
meta(property="og:url", content="{{ url_for('cloud.services') }}")
|
||||
meta(property="og:url", content="{{ request.url }}")
|
||||
|
||||
meta(property="og:title", content="Services - Blender Cloud")
|
||||
meta(name="twitter:title", content="Services - Blender Cloud")
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
| {% block og %}
|
||||
meta(property="og:title", content="Blender Cloud Statistics")
|
||||
meta(property="og:url", content="https://cloud.blender.org/stats")
|
||||
meta(property="og:url", content="{{ request.url }}")
|
||||
meta(property="og:image", content="{{ url_for('static', filename='assets/img/backgrounds/background_andy_hdribot_01.jpg')}}")
|
||||
| {% endblock %}
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
| {% block og %}
|
||||
meta(property="og:title", content="Blender Cloud - Open Content Production Platform")
|
||||
meta(property="og:url", content="https://cloud.blender.org/")
|
||||
meta(property="og:url", content="{{ request.url }}")
|
||||
meta(property="og:image", content="{{ url_for('static', filename='assets/img/backgrounds/background_dweebs_01.jpg')}}")
|
||||
| {% endblock og %}
|
||||
|
||||
|
Reference in New Issue
Block a user