link: url must start with protocol
Create a link.
For example www.google.com.
Click on link.
It fails because href = /chamilo/www.google.com. I.e. it must start with http/https.
Many people are not so inclined to enter the protocol. Most people will use external urls.
- Would be better to say url starting with / relates to chamilo while others are external. In this case, if protocol is not available default to http://.
- Provide some UI feedback that a url is inernal/external to avoid issues.
Updated by Laurent Opprecht about 11 years ago
This is an improvement yes.
I would say a slighlty better scheme would be:
if url starts with / then it is relative to the current application.
if not and no protocol exists prepend the http. That is if the string does not start with **://
as many people like to enter the url without the protocol