Skip to content

Commit

Permalink
fix(core): remove leading slash from static files
Browse files Browse the repository at this point in the history
The leading slashes seem to lead to confusing errors from the django
debug toolbar and the `url` method of the configured storages remove it
anyway:
https://github.com/django/django/blob/d71c588d83e58e83bdd9ea8bf03724d10f02a8bd/django/core/files/storage/filesystem.py#L225

Closes: #1399
  • Loading branch information
b1rger committed Nov 13, 2024
1 parent 98e2ca3 commit 4b424cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis_core/core/templates/partials/footer-left.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
{% url "apis_core:swagger-ui" as swagger_ui %}
{% if swagger_ui %}
<a href="{{ swagger_ui }}" title="Swagger UI">
<img src="{% static "/img/Swagger-logo.png" %}" alt="Swagger UI" height="24px">
<img src="{% static "img/Swagger-logo.png" %}" alt="Swagger UI" height="24px">
</a>
{% endif %}
{% git_repository_url as repository_url %}
{% if repository_url %}
<a href="{{ repository_url }}" title="Git repository">
<img src="{% static "/img/Git-Icon-1788C.png" %}" alt="Git repository" height="24px">
<img src="{% static "img/Git-Icon-1788C.png" %}" alt="Git repository" height="24px">
</a>
{% endif %}

0 comments on commit 4b424cc

Please sign in to comment.