CodeIgniter Forums
How the controller manage a link with hashtag at the end of it ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How the controller manage a link with hashtag at the end of it ? (/showthread.php?tid=58218)



How the controller manage a link with hashtag at the end of it ? - El Forum - 05-24-2013

[eluser]Unknown[/eluser]
Good afternoon everybody,

I have a small question. I have this kind of link in a div which redirect the user to a specific place on a specific page:

Code:
<div class="span3 square3 blueglow displaytable" >

I turned it into a CI specific code:

Code:
&lt;? echo '<div class="span3 square3 blueglow displaytable"  . site_url('help/conceptcompanies') . "#lowcost" . '\';">'; ?&gt;


The adress of the link is working fine but the controller cannot handle it because I don't have a specific function handling it...

Somebody have an idea?

Thank you,

Charles


How the controller manage a link with hashtag at the end of it ? - El Forum - 05-25-2013

[eluser]PravinS[/eluser]
Try javascript onclick event on div tag to open the url using window,location,href (replace comma(,) with dot(.))