How to link with a hash in URL? |
I am trying to create a simple link as seen in the code below.
Code: <li class="nav-item"> Manually typing in the URL works fine. What kind of workaround would you recommend for this? Thank you in advanced!
I can get it to work with both 'welcome#footer' and 'welcome/#footer' without modifying anything but base_url (config), loading url helper (controller) and modifying the view (welcome_message).
As it works with manually typing in the URL, I guess you got the id="footer" in place. Try deleting all JavaScript in case it high-jacks the default behavior.
SEE: HTML Links - Create a Bookmark
HTML Links What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |