Skip to content

Commit

Permalink
Set the proper vulnerablecode_url in the tab context #108
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Sep 4, 2024
1 parent 27bb15e commit 7945972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tr>
<td>
<strong>
<a href="{{ values.vulnerablecode_url }}vulnerabilities/{{ vulnerability.vulnerability_id }}" target="_blank">
<a href="{{ vulnerablecode_url }}vulnerabilities/{{ vulnerability.vulnerability_id }}" target="_blank">
{{ vulnerability.vulnerability_id }}
<i class="fa-solid fa-up-right-from-square mini"></i>
</a>
Expand Down
1 change: 1 addition & 0 deletions product_portfolio/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ def get_context_data(self, **kwargs):
"page_obj": page_obj,
"total_count": total_count,
"search_query": self.request.GET.get("vulnerabilities-q", ""),
"vulnerablecode_url": VulnerableCode(product.dataspace).service_url,
}
)

Expand Down

0 comments on commit 7945972

Please sign in to comment.