CodeIgniter Forums

Full Version: current url being added to links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

<a href="">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?

El Forum

Try <a href="">Link</a>

El Forum

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