saviomartin / codehouse

A whole new world of 300+ developer cheatsheets
https://codehouse.vercel.app/
MIT License
968 stars 72 forks source link

Incorrect external link #4

Closed evaleries closed 3 years ago

evaleries commented 3 years ago

Bug description External link on top of the title isn't correct link.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codehouse.vercel.app/

  2. Click on the blue text on top of the title. (www.freecodecamp.org) image

  3. The browser opens a new tab and redirect the user to https://codehouse.vercel.app/www.freecodecamp.org

  4. The final URL would be like this: https://codehouse.vercel.app/post/pixllabs.io

Expected behavior The link should redirect the user to https://www.freecodecamp.org instead.

Desktop (please complete the following information):

Code reference Maybe we can add http:// or https:// prefix on Item.js line 372 https://github.com/saviomartin/codehouse/blob/main/components/utils/Item.js#L372

saviomartin commented 3 years ago

Cool, thanks for reporting. It is fixed now.