codeigniter: why is that when i echo base_url() in an href attribute of an anchor tag, it echoes twice
===

so basically when i echo the codeigniter function base_url() in the href attribute of an anchor tag, it appears to echo it out twice.  Example:

    <a href="<?php echo base_url(); ?>">somelink</a>

and the above, if you inspect it your chrome browser shows this:

   

    <a href="www.mysitedomainname.com/www.mysitedomainname.com/">somelink</a>

"mysitedomainname.com" is just a name i made up for this example.  Any reason why this is happening?