mardi 27 juin 2017

HTML href tag adding a '#!' to fragment

I'm looking to redirect to a certian fragment of my page by using an anchor tag in HTML.

So far, I have

<ul>
    <li><a href="#Links">Links</a></li>
</ul>

as the link, and then later in the code

<section id = "Links">
    ...
</section>

However, when I click on the anchor when testing on my localhost, the URL becomes

http://localhost:5000/#!#Links

Rather than

http://localhost:5000/#Links

Why is this? How can I eliminate the shebang from the URL after I click on the link?




Aucun commentaire:

Enregistrer un commentaire