Skip to content
Snippets Groups Projects
Commit 1c677bcc32a7 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Do not construct url for static endpoint

When layout is rendered for static endpoint, it is because the resource is not
found. So url_for will fail to construct the hash for flask_rev.
parent 9fe283073d72
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
<meta name="author" content="Tryton"/>
<meta property="og:title" content="{{ title }}"/>
<meta property="og:type" content="website"/>
{% if request.endpoint %}
{% if request.endpoint and request.endpoint != 'static' %}
<meta property="og:url" content="{{ url_for(request.endpoint, _external=True, **request.view_args) }}"/>
{% else %}
<meta property="og:url" content="{{ request.url }}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment