This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Schweicen
about 9 years

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

Permalink

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>
points
Submitted by Roy
about 9 years