Bootstrap, nav-tabs, dropdown menus; how to set active tab based on URI
I'm using Bootstrap nav-tabs/dropdown menus component as my primary navigation bar but I cant figure out how to set the active menu based on an incoming URI. There are a lot of different examples/posts on the net that use nav-tabs for hiding and displaying specific div content or working with the # symbol but I just want to read the incoming URI using PHP, the _SERVER["REQUEST_URI"] variable and set a tab active. Be it a nested location in the navigation or not is also a problem. Here what I've been trying: <ul class="nav nav-tabs" id="supernav"> <li class="active"><a href="/page1.html" data