Skip to content

Commit

Permalink
Fix icon redirection by adding language code and leading slash to URI (
Browse files Browse the repository at this point in the history
  • Loading branch information
codeurimpulsif authored Oct 19, 2022
1 parent 3133283 commit da96ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exodus/reports/templates/report_details.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "base/base.html"%}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
{% load static %}
{% if report %}
Expand All @@ -14,7 +15,7 @@

<div class="row justify-content-sm-center">
<div class="col-xl-2 col-lg-2 col-md-8 col-12 text-lg-left text-center mb-4">
<img src="/reports/{{ report.application.id }}/icon" class="rounded" width="115" height="115" alt="{{ report.application.handle }} logo">
<img src="/{{ LANGUAGE_CODE }}/reports/{{ report.application.id }}/icon/" class="rounded" width="115" height="115" alt="{{ report.application.handle }} logo">
</div>
<div class="col-xl-6 col-lg-6 col-md-8 col-12 text-center text-lg-left my-auto mb-4">
<h1 class="main-title">
Expand Down

0 comments on commit da96ad0

Please sign in to comment.