I want to redirect a user to a specific tab after clicking the link of another page. Here is the code of page 1: index.html
<div class="products-btn">
<a href="products.html#pills-profile">view all</a>
</div>
Page 2 Products.html:
<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>
I want to redirect the user from product's btn to solutions tab. I'm using bootstrap 5.1 in my all pages.