CodeIgniter Forums
Help with anchor tag. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Help with anchor tag. (/thread-50664.html)



Help with anchor tag. - El Forum - 04-03-2012

[eluser]Guuulj[/eluser]
Hi guys.
I have a problem with anchor tag.
I have created controller which path is http://localhost/blog/blogcategory/5
When I manually insert that address in address bar, it take me to that page.
On the side nav, i've placed anchor('blog/blogcategory/5', 'Click Here');
and it doesn't work. When I hover the mouse over a link, it prints out the right address.
Any thoughts?
Thanks!
EDIT: It even work when I drag&drop; link to address bar!


Help with anchor tag. - El Forum - 04-03-2012

[eluser]InsiteFX[/eluser]
Try this:
Code:
anchor(base_url('blog/blogcategory/5'), 'Click Here');



Help with anchor tag. - El Forum - 04-04-2012

[eluser]Guuulj[/eluser]
Anchor tag gives me the right address, there is not a problem with that.
Nevertheless, I tried and it didn't help. Anchor tag works even on the middle click.


Help with anchor tag. - El Forum - 04-04-2012

[eluser]Guuulj[/eluser]
Found it! JS was the problem.