• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
current url being added to links

In my source code (a product description from a database), I have a regular anchor tag

<a href="www.example.com">Example</a>

but when I mouse over the anchor in the browser I get the current url added to the beginning of the anchor such as


As I stated above, it is a regular anchor tag that is in a product description coming from a database, I am not using the echo anchor() from the codeigniter library.

Does anyone know why this is happening?

Try <a href="http://www.example.com">Link</a>

copernicus has got it right. If you don't have 'http://' the path is seen as a relative path rather than a URL

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.