I have a navigation on my site where the last link opens a modal. Scrollspy is working fine but I don't want it to highlight the last element that opens the modal in any case.
Is there any way to do so?
<nav>
<ul class="nav">
<li class="current">
<a href="#home">Home</a>
</li>
<li>
<a href="#leistungen">Leistungen</a>
</li>
<li>
<a href="#">Preise</a>
</li>
<li>
<a href="#">Referenzen</a>
</li>
<li>
<a href="#contact" data-toggle="modal">Kontakt</a>
</li>
</ul>
</nav>