sotirisspace / repo-ranger

Repo-Ranger is an AI-powered Github leaderboard that has no AI. It analyzes your Github activity and based on your score you win a clap 👏 or a 💩.
https://reporanger.xyz
GNU General Public License v3.0
6 stars 2 forks source link

Blog Link Redirect Issue #7

Closed mypablo closed 1 month ago

mypablo commented 1 month ago

Description:

When a user's blog link does not include the scheme (i.e., 'https://' or 'http://'), the redirect fails to work correctly. This issue occurs if the link is entered as just www.google.com or google.com, leading to an incomplete redirect.

Steps to Reproduce:

  1. Go to a user's profile with a blog URL that doesn't include http:// or https://.
  2. Click on the blog link in the user profile.
  3. Observe that the redirect does not occur successfully.

Expected Behavior:

The blog link should redirect properly, even if the URL doesn't include the scheme (http:// or https://). The URL should be normalized automatically.

Screenshots:

  1. Before clicking the blog link: screenshot-1

  2. After clicking the blog link (incorrect redirect): screenshot-2

Additional Context:

This issue occurs because the scheme is not included in the URL, causing the browser to handle the link incorrectly. A possible fix would be to normalize the URL by prepending http:// or https:// if it's missing.

AkisKourouklis commented 1 month ago

Thanks for mentioning this issue @mypablo I am currently looking into it.

AkisKourouklis commented 1 month ago

The issue is now fixed and closed with this commit (abc2a71).

Thanks a lot @mypablo for finding and mentioning this issue