Skip to content

πŸ› Bug: Social media links Ambassadors in "Become a JSON Schema Ambassador"Β #1161

@Pavankumar07s

Description

@Pavankumar07s

Describe the bug

There is an issue with some ambassador card components where certain ambassador links redirect to incorrect URLs. The problem arises because the JSON file containing the ambassador information includes a mix of full URLs for social links and usernames.

In the ambassador card component, there is a formatting feature designed to standardize the URLs, but it is not effectively handling the inconsistency in the data. For example:

If the JSON contains only a username (e.g., "username": "example"), the component should prepend the base URL (e.g., https://twitter.com/) to construct the full link.
If the JSON already contains the full URL (e.g., "url": "https://twitter.com/example"), the component should use it directly without modification.

Steps To Reproduce

1.Go to the page where the ambassador cards are displayed.
2.Click on an ambassador's social link (e.g., Twitter, GitHub).
3.Scroll down to inspect other ambassador cards and try clicking their links.
4.Observe that some links redirect to incorrect URLs or fail to open properly.

Expected Behavior

All social links should redirect to the correct pages based on the provided information in the JSON file. Links should work regardless of whether they are full URLs or usernames.

Screenshots

Screenshot from 2024-12-14 11-37-29

Device Information [optional]

- OS:
- Browser:
- version:

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

Yes

Metadata

Metadata

Assignees

Labels

Status: AcceptedIt's clear what the subject of the issue is about, and what the resolution should be.Status: In ProgressThis issue is being worked on, and has someone assigned.πŸ› BugIndicates that the issue is a bug or defect.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions