Standardize links in curriculum
See original GitHub issueThe curriculum (project and challenge pages) contain links to various places; github, codepen, replit, etc. Sometimes they open in a new tab, sometimes not. Sometimes they contain rel="noopener noreferrer"
, sometimes not.
We could go through and make them all consistent? Adding target="_blank" rel="noopener noreferrer nofollow"
to all of them?
Here’s a good article explaining the rel
values
Not sure what we all want to use. I think we could make them all open in a new tab at the least.
Edit:
For links with these format, [hexadecimal numbers here](https://www.freecodecamp.org/news/hexadecimal-number-system/)
regex /\[(.*?)\]\((.*?)\)/gm
should target them and <a href="$2"target="_blank" rel="noopener noreferrer nofollow">$1</a>
will swap them into <a href="https://www.freecodecamp.org/news/hexadecimal-number-system/"target="_blank" rel="noopener noreferrer nofollow">hexadecimal numbers here</a>
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top GitHub Comments
Thank you for bringing this up, I will update it
Thank you all for working on this! I noticed an issue with regards to translation.
It looks like if you nest markdown syntax within HTML tags, Crowdin (translation tool) can’t parse them properly.
For example, the string below in this file:
will appear like below on Crowdin, which does not trigger the QA check for
<code>
tags. (Crowdin link)It should work correctly if you change the backticks to
<code>
tags.Note: Backticks work fine when they are not inside HTML tags.