Don't use ?format=amp after url_for()

url_for() is smart enough to add variables to the query string if there is
no route parameter for them.
This commit is contained in:
2017-01-24 16:35:02 +01:00
parent 0e07cb2b1d
commit bc6f526b72

View File

@@ -39,7 +39,7 @@ meta(name="twitter:description", content="{{node.description}}")
| {% block head %} | {% block head %}
link(href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.1/themes/default/style.min.css", rel="stylesheet") link(href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.1/themes/default/style.min.css", rel="stylesheet")
| {% if node %} | {% if node %}
link(rel="amphtml", href="{{ url_for('nodes.view', node_id=node._id, _external=True) }}?format=amp") link(rel="amphtml", href="{{ url_for('nodes.view', node_id=node._id, _external=True, format='amp') }}")
| {% endif %} | {% endif %}
| {% endblock %} | {% endblock %}