Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hide Wikipedia button if server provides no Wikipedia URL #2092

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

budowski
Copy link
Collaborator

@budowski budowski commented Sep 17, 2024

Closes #1740

@kueda kueda changed the title Fix #1740 - Taxon details screen - if no Wikipedia URL, use default t… Taxon details screen - if no Wikipedia URL, use default taxon-name URL Sep 17, 2024
Copy link
Member

@kueda kueda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example of Strangalia acuminata in the issue is really a server-side problem. IMO, we should do what the issue requested and hide the link if the server didn't provide wikipedia_url, because in theory it's the server's responsibility to provide a valid Wikipedia URL, and if it doesn't, the client should just assume there's a good reason for that.

So,

  • Hide the Wikipedia button if the server didn't provide wikipedia_url, or if it did and it was blank
  • Remove that vestigial code constructing the Wikipedia URL from the taxon name

@kueda kueda changed the title Taxon details screen - if no Wikipedia URL, use default taxon-name URL fix: hide Wikipedia button if server provides no Wikipedia URL Sep 17, 2024
@kueda kueda merged commit 6c9d21d into main Sep 28, 2024
11 checks passed
@kueda kueda deleted the 1740-hide-wikipedia-link branch September 28, 2024 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide wikipedia link in TaxonDetails if there's no URL
2 participants