Is there a way to direct users to a specific tab upon clicking a link on another page? Check out the example below:
<div class="products-btn">
<a href="products.html#pills-profile">view all</a>
</div>
On Products.html, you can find the following code for the tabs:
<ul class="nav nav-pills justify-content-center" id="pills-tab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="pills-home-tab" data-bs-toggle="pill" data-bs-
target="#pills-home" type="button" role="tab" aria-controls="pills-home" aria-
selected="true">products</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="solve" data-bs-toggle="pill" data-bs-target="#pills-
profile" type="button" role="tab" aria-controls="pills-profile" aria-
selected="false">solutions</button>
</li>
</ul>
If you are looking to redirect from the products button to the solutions tab, make sure to incorporate Bootstrap 5.1 in all your pages.