This forum is now read-only. Please use our new forums! Go to forums
Why exactly the CodeAcademy team implemented the secure URLs feature?
For example if you do something like:
<a href="wikipedia.org">[...]</a>
It redirects you to http://external-production.codecademy.com/assets/secure/wikipedia.org instead of wikipedia.org
I’m just curious why they’re doing this - is it because they are afraid of someone putting in some website with malicious code which would attack them or what?
Answer 54dd1f15e39efe201500005e
3 votes
The URL you have typed is missing the protocol and looks to the server like a local resource in the current folder, which is as you have shown. We must write complete URL’s when referring to an outside resource:
<a href="http://www.wikipedia.org/">Wikipedia</a>
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency