I’m having an unexpected behavior with links to the same page in Codeigniter. Somewhere in the page is a tag.
However, links such as
<a href="#xx"></a>
are not working. Even if I enter the URL manually:
"path/to/page#xx" or "path/to/page/#xx"
it goes to the top of the page.
Something to do with the fact that there are no filename in the URL? Any clue will be welcome.
Thanks!
This probably has nothing at all to do with CodeIgniter. Make sure you have either of these:
1. Standard Anchor
<a name="xx">XX</a>, or…2. An element with “xx” as the ID
<div id="xx">...</div>I can’t imagine what CI would be doing to throw you off here…