CodeIgniter Forums

Full Version: Help with anchor tag.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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!

El Forum

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

El Forum

[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.

El Forum

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