1
0
Fork 0

Add version query parameter to Leaflet CSS and JS

This commit is contained in:
Mo 2023-05-31 01:11:40 +02:00
parent 9dcfd3e3c1
commit 4c2dbd2e5f

View file

@ -2,7 +2,7 @@
{% block styles %} {% block styles %}
<link rel="stylesheet" <link rel="stylesheet"
href="{{ get_url(path='leaflet/leaflet.css') | safe }}" /> href="{{ get_url(path='leaflet/leaflet.css') | safe }}?v={{ now(timestamp=true) }}" />
{% endblock %} {% endblock %}
{% block content %} {% block content %}
@ -28,7 +28,7 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}"></script> <script src="{{ get_url(path='leaflet/leaflet.js') | safe }}?v={{ now(timestamp=true) }}"></script>
<script> <script>
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}"; L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";