Skip to content

Commit

Permalink
Merge pull request #684 from unepwcmc/feat/273-broken-region-links
Browse files Browse the repository at this point in the history
fix: give correct link for regions in filter results
  • Loading branch information
lucacug authored Jun 15, 2022
2 parents f3f967f + ae44bfa commit 56411de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/serializers/search/base_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def url(obj)
protected_area_path(obj.wdpa_id)
elsif obj.is_a?(Country)
country_path(iso: obj.iso_3)
elsif obj.is_a?(Region)
region_path(iso: obj.iso)
else
'#'
end
Expand Down

0 comments on commit 56411de

Please sign in to comment.