Skip to content

Commit bdb628c

Browse files
committed
Critical product metrics links updated to correct URL
1 parent 530977a commit bdb628c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

dojo/metrics/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def critical_product_metrics(request, mtype):
4242
add_breadcrumb(title=page_name, top_level=not len(request.GET), request=request)
4343
return render(request, template, {
4444
'name': page_name,
45-
'critical_prods': critical_products
45+
'critical_prods': critical_products,
46+
'url_prefix': get_system_setting('url_prefix')
4647
})
4748

4849
@cache_page(60 * 5) # cache for 5 minutes

dojo/templates/dojo/metrics.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,24 +141,24 @@ <h3 {% if not critical_prods %}class="has-filters" {% endif %}>
141141
<p> {{ c_prod.name }} is affected by <b>both</b> critical and high severity
142142
vulnerabilities.</p>
143143
<p>
144-
<a href="/dojo/finding/open?title=&date=&severity=Critical&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">Critical
144+
<a href="{{ url_prefix }}/finding/open?title=&date=&severity=Critical&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">Critical
145145
Severity Vulnerabilities</a></p>
146146
<p>
147-
<a href="/dojo/finding/open?title=&date=&severity=High&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">High
147+
<a href="{{ url_prefix }}/finding/open?title=&date=&severity=High&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">High
148148
Severity Vulnerabilities</a></p>
149149
{% elif c_prod.critical_present %}
150150
<p> {{ c_prod.name }} is affected by critical vulnerabilities. </p>
151151
<p>
152-
<a href="/dojo/finding/open?title=&date=&severity=Critical&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">Critical
152+
<a href="{{ url_prefix }}/finding/open?title=&date=&severity=Critical&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">Critical
153153
Severity Vulnerabilities</a></p>
154154
{% elif c_prod.high_present %}
155155
<p> {{ c_prod.name }} is affected by high severity vulnerabilities.</p>
156156
<p>
157-
<a href="/dojo/finding/open?title=&date=&severity=High&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">High
157+
<a href="{{ url_prefix }}/finding/open?title=&date=&severity=High&mitigated_by=&last_reviewed_by=&last_reviewed=&test__engagement__product__prod_type={{ c_prod.id }}&o=numerical_severity&page_size=25">High
158158
Severity Vulnerabilities</a></p>
159159
{% endif %}
160160
<p>
161-
<a href='/dojo/metrics/product/type?date=2&test__engagement__product__prod_type={{ c_prod.id }}&status='>
161+
<a href='{{ url_prefix }}/metrics/product/type?date=2&test__engagement__product__prod_type={{ c_prod.id }}&status='>
162162
Full Metrics</a></p></div>
163163
<br>
164164
</div>

0 commit comments

Comments
 (0)