Skip to content

Commit

Permalink
provider-details: Fix generating Green Web Check URL
Browse files Browse the repository at this point in the history
  • Loading branch information
melvo authored and cal0pteryx committed Jul 25, 2024
1 parent 7f82e27 commit 2d89285
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">Green hosting <i class="fas fa-xs fa-external-link-alt"></i></a>
{{ else }}
No <a href="/faq/#green-hosting" class="abbr">green hosting</a>
Expand Down

0 comments on commit 2d89285

Please sign in to comment.