diff --git a/pkg/dashboard/helpers.go b/pkg/dashboard/helpers.go index b96fa642..84779010 100644 --- a/pkg/dashboard/helpers.go +++ b/pkg/dashboard/helpers.go @@ -122,7 +122,7 @@ func getIcon(rm validator.ResultMessage) string { } func getCategoryLink(category string) string { - return strings.Replace(strings.ToLower(category), " ", "-", -1) + return "https://polaris.docs.fairwinds.com/checks/" + strings.ToLower(category) } func getCategoryInfo(category string) string { diff --git a/pkg/dashboard/templates/dashboard.gohtml b/pkg/dashboard/templates/dashboard.gohtml index fc309ef3..e0c7af0f 100644 --- a/pkg/dashboard/templates/dashboard.gohtml +++ b/pkg/dashboard/templates/dashboard.gohtml @@ -105,7 +105,7 @@
{{ $category }}Score: {{ $summary.GetScore }}%
-

{{ getCategoryInfo $category }} Refer to the Polaris documentation about {{ $category }} for more information.

+

{{ getCategoryInfo $category }} Refer to the Polaris documentation about {{ $category }} for more information.

{{ end }} {{/* end range categories */}} @@ -159,7 +159,7 @@
  • {{ .Message }} - +
  • @@ -174,7 +174,7 @@
  • {{ .Message }} - +
  • @@ -190,7 +190,7 @@
  • {{ .Message }} - +