Skip to content

fix(UI): Fix details page Project Link urls#17

Open
CryptoRodeo wants to merge 1 commit intopulp:mainfrom
CryptoRodeo:fix-details-page-links
Open

fix(UI): Fix details page Project Link urls#17
CryptoRodeo wants to merge 1 commit intopulp:mainfrom
CryptoRodeo:fix-details-page-links

Conversation

@CryptoRodeo
Copy link
Contributor

Project links in the details page navigated to localhost (e.g. http://localhost:3000/homepage,%20https://scipy.org/) because Pulp returns project_urls as an array of "label, url" strings rather than a Record<string, string> object.

Object.entries() on the array produced numeric indices as labels and the full "label, url" string as the href, which the browser treated as a relative path.

This Normalizes project_urls at the consumption point in MetadataSidebar to handle both the array format (split on first ", ") and the standard object format.

Before:
image

After:
image

Project links in the details page navigated to localhost
(e.g. http://localhost:3000/homepage,%20https://scipy.org/) because
Pulp returns `project_urls` as an array of "label, url" strings rather
than a Record<string, string> object.

Object.entries() on the array produced numeric indices as labels and
the full "label, url" string as the href, which the browser treated as
a relative path.

This Normalizes project_urls at the consumption point in MetadataSidebar to
handle both the array format (split on first ", ") and the standard
object format.

Signed-off-by: Bryan Ramos <bramos@redhat.com>
@CryptoRodeo CryptoRodeo self-assigned this Feb 13, 2026
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.

1 participant