Skip to content

Commit

Permalink
Overview: Fix generating Green Web Check URL
Browse files Browse the repository at this point in the history
  • Loading branch information
cal0pteryx committed Jul 25, 2024
1 parent 2d89285 commit 641de0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
</td>
<td>
{{ if .ratingGreenWebCheck }}
{{ $url := replace $providers_data.ratingGreenWebCheck.source "https://admin.thegreenwebfoundation.org/greencheck/" "" }}
{{ $url := index (last 1 (split $providers_data.ratingGreenWebCheck.source "/")) 0 }}
<a href="https://www.thegreenwebfoundation.org/green-web-check/?url={{ $url }}" target="_blank">Yes</a>
{{ else }}
<a href="/faq/#green-hosting" class="abbr">No</a>
Expand Down

0 comments on commit 641de0f

Please sign in to comment.