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

communityItem: add detailUrl #1025

Merged

Conversation

jrcastro2
Copy link
Contributor

@@ -36,7 +37,7 @@ export const CommunityCompactItemMobile = ({

<div className="flex align-items-center rel-mb-1">
<a
href={links.self_html}
href={detailUrl || links.self_html}
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: if both are provided it will evaluate to true if I am not mistaken

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on the docs we should be safe. If detailUrl can be converted to true it will return that value, otherwise it will check for links.self_html

@kpsherva kpsherva merged commit 169bfe5 into inveniosoftware:master Sep 21, 2023
4 checks passed
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.

2 participants