I'm trying make a navigation menu following the bootsrap API.
Here is what I have:
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="Home" role="tab" data-toggle="tab">Home</a></li>
<li><a href="Login" role="tab" data-toggle="tab">Login</a></li>
<li><a href="Prediction" role="tab" data-toggle="tab">Predict</a></li>
</ul>
I want to redirect to different urls by pressing these tabs. The problem is that links doesn't work in menu context and DO work if I just write:
<a href="Home">Home</a>
<a href="Login">Login</a>
<a href="Prediction">Predict</a>
The problems appear when I add role="tab" data-toggle="tab"
to a menu element.
If I will remove role="tab" data-toggle="tab"
then it stops to behave like tabs (no active tab).
How to fix it?