pwa: add site base URL for local navigation entries (#29435)

This commit is contained in:
Frédéric Péters 2019-01-03 21:11:54 +01:00
parent f1473c616d
commit 56139bed1f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
<li class="{{ entry.css_class_names }}" data-entry-pk="{{ entry.pk }}"
{% if entry.notification_count %}data-notification-count-url="{{site_base}}/api/notification/count/"{% endif %}
{% if entry.use_user_name_as_label %}data-pwa-user-name="{% skeleton_extra_placeholder user-name %}{{user.get_full_name}}{% end_skeleton_extra_placeholder %}"{% endif %}>
<a href="{{ entry.get_url }}"
<a href="{% if entry.link_page_id %}{{ site_base }}{% endif %}{{ entry.get_url }}"
{% if entry.icon %}style="background-image: url({{site_base}}{{entry.icon.url}});"{% endif %}
><span>{{ entry.get_label }}</span></a></li>
{% endfor %}